IF |
Top Previous Next |
Syntax IF condition THEN action { ELSE action }
IF condition {THEN} actions { ELSE {IF condition} actions } ENDIF Description Beginning of an IF statement or IF block. Parameters condition - Any condition that will be either TRUE or FALSE. Return value None Remarks If the condition is true then all of the statements following the IF statement will be executed up to and in including the statement before an ELSE, ELSEIF or ENDIF statement. All IF statement blocks must end with a corresponding ENDIF statement unless using the single line format. Example usage IF a = 7 THEN PRINT "a=7" |