Syntax
Name fixed values: TRUE and FALSE are truth values, NULL means no value, and PI is 3.141592653589793.
TRUE
FALSE
NULL
PIAlso written : TRUE, FALSE, NULL, PI
Good to know
TRUEis not1, andFALSEis not0. A variable set to TRUE printstrueand is not equal to 1. Test it withIF ready THEN, or withIF NOT ready THEN.- A comparison stored in a variable gives 1 or 0, not TRUE or FALSE:
done = (3 > 2)stores 1. NULLis the start value of aHANDLEand of a task handle. Str(NULL) givesnull.NULLis false in a condition, but0 = NULLis false.TRUE,FALSEandNULLare written in any case.PIis upper case only:piorPiis an unknown name and stops the program with "pi is not defined".
Example
ready = TRUEConsole(Str(ready)) ' trueIF ready THEN Console("ready") ' readyIF ready = 1 THEN Console("never shown")done = (3 > 2)Console(Str(done)) ' 1h AS HANDLEIF h = NULL THEN Console("no handle yet") ' no handle yetConsole(Str(PI)) ' 3.141592653589793In the manual : Constants and operators