IF+ , IF-
Description: x is any expression
clause is a BASIC statement or sequence of statements (separated by commas), or a line number to branch to
If x is true, and on the previous check it was false, the clause following the THEN is executed. Otherwise the clause after the ELSE is executed.
Description: x is any expression
clause is a BASIC statement or sequence of statements (separated by commas), or a line number to branch to
If x is False, and on the previous check it was true the clause following the THEN is executed. Otherwise the clause after the ELSE is executed.
Example: 10 IF- CHILLER THEN GOSUB 30 20 END
30 PRINT “THE CHILLER HAS JUST GONE OFF”
40 RETURN
|