Do Case command

Unofficial Content
This documentation is valid for:

To perform a set of commands depending on the condition.

Syntax

Do case
{Case cond
        block1}…
Otherwise
       block2
EndCase

Where:
cond
  Condition evaluated in the case.
blockx
    Blocks that are executed if the condition evaluates respectively to true or false.
Otherwise clause
    Establish a final alternative in case all previous conditions are not matched.
    The Otherwise operator is often used in Expression Formulas as the last alternative in case all previous IF conditions are not matched.
    The alternative value is the value indicated to the left of the OTHERWISE operator. This value must coincide with the attribute's definition.

 

Description

Any type of conditions can be used involving attributes and/or variables. The first Case whose condition is satisfied will be executed, and none of the others will be executed. In case all other Case conditions evaluate to false, then the commands specified under Otherwise are executed. It works in the same way if/else work.

 

Note

In Smart Devices works on both Client-side and Server-side events.

 

Scope

Objects Procedure object, Transaction object, Web Panel object, Work Panel objectWork With for Smart Devices objectPanel for Smart Devices object
Languages  .NET, Java
Platforms Web, Android, iOS

 

See also

Sub command