| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Constructs | NO | NO | YES | All |
This command lets you implement a branch or change of processing order within a method depending on the result of the previous command. It tests the flag and if it is true, the commands following the If flag true are executed. However, if the flag is false, control branches to the next Else, Else If or End If in the method.
# Test if list line selected sets the flag to true if the line is selected
Set current listiMyList
Test if list line selected2If flag true# If the list line is selected, processing continues here.OK message{The list line is selected}
End If