Description |
Works with the If action to provide an alternate code block to execute if the expression is not true. "If" combined with "Else" is an extremely useful combination. It allows decisions to be made during the execution of the Workflow depending on the result of an expression evaluation. Some examples of simple (although impractical) expressions are: as 1=1 (true). Or 1>2 (false). Of course the kinds of expressions more likely to be used in the "If" action are: city = "Los Angeles" or count = 100. If the result evaluates to TRUE, Automated Workflow will execute the block of steps immediately following the If action up until an End If is encountered, otherwise the block will be skipped (or if an Else <AMELSE> statement is encountered it will execute that block of steps). All If actions must be followed at some point with an End If <AMENDIF> to mark the end of the code block that is to be executed if the expression is true. |
Declaration |
<AMELSE> |
Examples |
<!-- Another test with AMELSE - should result to false--->
<!-- Check if it is Friday! Using functions and AMELSE
- in this example it will only work if it is actually Friday---> |
Parameters |
There are no parameters with this action. |
See Also |