Condition criteria are also known as control structures in the world
of programming. In UMRA, the If-Then-Else
action offers the possibility to execute an action if one ore more conditions
are met. It is very common to include some code that is only executed
if certain conditions are met.
If/Then/Else
The If/Then/Else statement allows you to evaluate a condition and then
perform different actions depending on the results of that condition.
IF the result of an evaluation is
TRUE, action A will be executed. If the result is FALSE, then action B
is executed. The following simple example illustrates this principle.
The code checks the current date. If the current date is equal to 1 January
2006 (the result is TRUE), the variable %Greeting% is set to "Happy
New Year". If the current date is not equal to 1 January 2006 (the
result is FALSE), the variable %Greeting% is set to "Sorry, it's
not New Year yet"!. The content of the variable %GREETING% can then
be displayed in another form.