FANDOM



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

Syntax
ENDIF
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, all commands before the ENDIF command are skipped.

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.