AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.11 If...Then...Else
General Information
Type Statement
Description
If...Then...Else statements controls program execution based on the evaluation
of numeric or string expressions.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Ver-
sion
TBD
Description
If...Then...Else statements controls program execution based on the evaluation of numeric or
string expressions. The syntax of If...Then...Else statements are as follows:
IF condition1 THEN
...statement block1...
[ ElseIf condition2 Then
...statement block2...]
[Else
...statement block3...]
End If
If condition1 is True then statement block1 is executed. Otherwise, if condition2 is True then
statement block2 is executed. If the original IF condition is False and all ELSEIF conditions are
False then the ELSE statement block (statement block3) is executed.
Related Topics
Select Case | While...Wend | Exit
Kollmorgenâ„¢ | March 30, 2012 108