This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

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