IF-THEN-ELSE-ENDIF

Syntax:

IF a#$ =  <  <=  >  >=  <> b#$
...
| ELSE
| ...
ENDIF

or:

IF a#$ =  <  <=  >  >=  <> b#$ THEN ...

Evaluates the code between IF and ENDIF if the comparision of a#$ and b#$ is TRUE. If not, the code between ELSE and ENDIF is evaluated if ELSE is used.
You can use the command THEN if you only want one command to be executed if the comparision is TRUE.

Sample:

a=5; b=3

IF a < b
    PRINT “a < b”, 100, 100
ELSE
    PRINT “a < b is FALSE”, 100, 100
ENDIF

IF a<>b THEN PRINT “a is not b”, 100, 150

SHOWSCREEN
MOUSEWAIT