NAME IF...THEN...ELSE Statement SYNOPSIS IF condition1 THEN [statementblock-1] [ELSEIF condition2 THEN [statementblock-2]]... [ELSE [statementblock-n]] END IF IF condition THEN statements [ELSE statements] o condition1 Any expression that can be evaluated as condition2 true (nonzero) or false (zero). o statementblock-1 One or more statements on one or more lines. statementblock-2 statementblock-n o statements One or more statements, separated by colons. DESCRIPTION Executes a statement or statement block depending on specified conditions. Example: INPUT "1 or 2? ", i% IF i% = 1 OR i% = 2 THEN PRINT "OK" ELSE PRINT "Out of range" END IF SEE ALSO ON...GOSUB ON...GOTO SELECT CASE