EXIT-LOOP

ExitLoop establishes a condition that if true, will discontinue the loop. The system will exit the loop based on the IF condition resulting to true.

EXIT-LOOP: Elements and Attributes
TYPE = EXITLOOP
Element Attribute Attribute Value Element Value

<MathVariable>

TYPE

EXIT-LOOP

There is no element value needed.

LOG

Yes: the result is stored in AsActivityMath table to be used by other activities.

No: the result is not stored. This is the default behavior.  

 

IF

Conditional statement to define when to end the loop.

You may use previously defined Math Variables, literal hard-coded values, a combination of both, and operators within the configuration of the condition.

CLEARVALUE

Value: Yes / No

Default Value: No

Yes: The value of the math variable will be deleted after the execution of all the Attached Rules at the end of activity processing and will not be visible on the Math tab in the Activity details screen.

No: The value of the math variable will be retained after activity processing and will be displayed in the Math tab in the Activity details screen.

XML Example

<MathVariable VARIABLENAME="ExitLoopWhen" 
 TYPE="EXIT-LOOP" IF="PaymentMethod = '03'"></MathVariable>

Important: Go to Operators available for EXPRESSION writing to see what operators you may use for creating Expressions.