IF

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

  Syntax
IF Condition
  Parameters
Condition
Value
Enter the appropriate value here.

  Returns

This command does not return a value.

  Description

If the condition is true, the commands after the THEN keyword are performed. Ensure that your commands after the THEN keyword are separated by a colon(:). If the condition is false, the rest of the line is skipped.

  Example Code
A=1
IF A=1 THEN PRINT "a is one"
WAIT KEY
  See also

CORE Commands Menu
Index