Page 1 of 1

"Not equal to" in if/elseif etc

Posted: Sat Aug 24, 2002 3:34 pm
by Bennettman
I know the stuff like == (equal) >> (more than) and <= (less than or equal), but I can't for the life of me think up the one for "is not equal to". I'd appreciate any help ^_^

Posted: Sat Aug 24, 2002 3:38 pm
by Xelmepa
Either use != or <> . I suggest you use != cuz <> could be for numbers only (yet I have no clue).

Generally ! is for not:
i.e.

if(!isset($var));
{
//code
}
...

this checks if a variable is not set...

Posted: Sat Aug 24, 2002 3:41 pm
by Bennettman
Cheerz :)

Posted: Sat Aug 24, 2002 3:45 pm
by Xelmepa
Cheerz :) ::drinks coke::

Posted: Sat Aug 24, 2002 3:50 pm
by Bennettman
Cheerz :) ::drinks Coke... then realises he doesn't have any::

Posted: Sat Aug 24, 2002 3:53 pm
by Takuma
**Tries to drink coke** "Oh no! I'm on diet :lol: "

Posted: Sat Aug 24, 2002 4:02 pm
by Xelmepa
Diet Coke ;)

Posted: Sat Aug 24, 2002 4:59 pm
by volka
are you men or mice? Diet coke, really..... :D

Posted: Sun Aug 25, 2002 12:20 am
by Takuma
Before drinking diet coke - Can't you be a bit more fitter if you not drink coke stuff...??

Posted: Sun Aug 25, 2002 5:39 am
by Xelmepa
Dunno...

Posted: Sun Aug 25, 2002 5:44 am
by Xelmepa
volka wrote:are you men or mice? Diet coke, really..... :D
I usually drink vodka :roll:

Posted: Mon Aug 26, 2002 12:45 am
by Takuma
Huh! I'm under age for that :(