Basic30 Language Reference
If...Then...Else Statements |
Execute a groupe of statements depending on the outcome of a conditional
expression.
If condition [ Then ]
[ statements ]
[ ElseIf ElseIf Condition [Then]
[ ElseIf statements] ]
[ Else
[ Else statements] ]
End If |
or
| If condition Then [ statement ] [ Else [
statement] ] |
- condition
- Required conditional expression to evaluate.
- statements
- Optional block of statements to be executed when condition is true
- statement
- Optional single statment
- ElseIf condition
- Required conditional expression when the optional ElseIf keyword is
used
- ElseIf statements
- Optional block of statements to be executed when ElseIf Condition is
true
- Else statements
- Optional block of statements to be executed if all previous ElseIf
Conditions are false, and condition is false.