if somthing is equal to nothing ?

Old posts that have not been replied to for several years.
Locked
T
TRiNuX

Post by TRiNuX »

Hey..

using if,then,else....
how can I check if a variable is equal to nothing?

{if $var == ""} gives an error saying 'extra characters after close-bracket'

I'm probably using the wrong syntax.. anyone help? :smile:
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

you typed it wrong, try

Code: Select all

if {$var == ""} { 
  #do stuff 
}
Locked