IF...THEN...ELSE
Description
Use IF...THEN block to execute one or more statements conditionally. You can
use either a single-line syntax or multiple-line "block" syntax:
Syntax
IF condition THEN statement
Notice that the single-line form of IF ...THEN does not use an ENDIF
statement.
Or
IF condition THEN
Statements
ENDIF
Or
IF condition THEN
Statements
ELSE
Statements
ENDIF
Or
IF condition1 THEN
Statement block 1
The syntax of IF...THEN...ELSE requires that the command be typed in one
single line in less than 255 characters.
Parameter
condition
statement
Example
DOWNLOAD "IFTHEN.BAS"
SIZE 4,4
GAP 0,0
Wasp Technologies.
Description
Available relational operator: <, >, =, <=, >=
Only one statement is available in
71
Copyright 2001 All Rights Reserved.