| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Constructs | NO | NO | YES | All |
This command terminates an If statement once Omnis has executed the commands inside the If statement; it also marks the end of the commands to be executed as part of the If...Else If block. Once the commands associated with the If...Else If block have been executed, control passes to the next command after End If. For every If command, you should have a corresponding End If command.
ForlCountfrom1to100step1IflCount>=25&lCount<=50IflCount=25OK message{Quater of the way through now}Else IflCount=50OK message{Halfway through now}End IfEnd If
End For
OK message{Done}