29.10.2009, 08:35
Look in Boolean logic for full understanding, but here is all you must know.
Usage in PAWN:
Now, variable "orange" can ONLY be TRUE or FALSE.
If you assign to that variable char, float or anything that isn't TRUE or FALSE, compiler will complain...
Setting variable to true/false is like anything else:
Condition:
Usage in PAWN:
Код:
new bool: orange;
If you assign to that variable char, float or anything that isn't TRUE or FALSE, compiler will complain...
Setting variable to true/false is like anything else:
Код:
orange = true; orange = false;
Код:
if(orange == true) OR if(orange) if(orange == false) OR if(!orange)