End If

Command group Flag affected Reversible Execute on client Platform(s)
Constructs NO NO YES All

Syntax

End If

Description

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 Ifblock. 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.

Example

For lCount from 1 to 100 step 1
  If lCount>=25&lCount<=50
    If lCount=25
      OK message {Quater of the way through now}
    Else If lCount=50
      OK message {Halfway through now}
    End If
  End If
End For
OK message {Done}