This command will allow your program to perform two different sequences of commands based on the result of a condition.
This command does not return a value.
If the condition is true, the commands immediately following the IF command are performed. If the condition is false, the commands immediately following the ELSE command are performed. You must always use an ENDIF to mark the end of the ELSE command sequence.
IF A=0 PRINT "a is zero" ELSE PRINT "a is not zero" ENDIF WAIT KEY