Classification
OTL Syntax
if (BooleanTerm)
{
...
}
else if (BooleanTerm)
{
...
}
else
{
...
}
Description
The OTX Branch activity is used for conditional execution of processes. It corresponds to the General "If-ElseIf-else" statement. One or more branches with a condition (condition) can be defined within the activity.
The Conditions are evaluated starting one from left after the other. The first branch in which evaluates true, is executed. None of the conditions is true, an optional branch without a condition (the last on the right side) is running. Not a branch without a condition exists in this case no action is performed by this activity.
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Condition |
Boolean |
Term |
- |
[1] |
Boolean expression (term) which contains the condition. The conditions are necessary until on the last branch and are evaluated from left to right.
|
OTL Examples
String str;
String Location = "Germany";
if (Location=="Germany")
{
str = "Hallo Welt!";
}
else
{
str = "Hello World!";
}
Hmi.ConfirmDialog(str, "Open Test Framework", @MessageTypes:INFO, NULL);
See also
Group
Loop
Parallel
Handler
MutexGroup