Syntax:
if {condition} [and/or {condition} {block} ...] [else {block}]
Keyword handler:
linguist.basic.keyword.BKIf.class
Runtime handler(s):
linguist.basic.handler.BHIf.class linguist.basic.handler.BHGoto.class
Function:
Handles basic decision-making in scripts. The {condition} can be a numeric or a string expression. The and and or conjunctions cannot be mixed in the same if statement. See also switch.
Example(s):
if Count is less than 100 go to Repeat if Word is "color" or Word is "colour" gosub to GetColor if ErrorFlag prompt "Error(s) detected" else prompt "No error(s) detected"