FANDOM



This command will allow your program to perform two different sequences of commands based on the result of a condition.

Syntax
ELSE
Returns

This command does not return a value.

Description

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.

Example Code
IF A=0

PRINT "a is zero"

ELSE

PRINT "a is not zero"

ENDIF

WAIT KEY
Community content is available under CC-BY-SA unless otherwise noted.