Break Action

Description

Breaks out of a loop. Commonly used inside an IF <AMIF> action within a Loop <AMLOOP> to check for a condition and break out of the loop if the condition is true.

Declaration

<AMBREAK>

Examples

<!--- Loop 6 times and test the value to see if it is greater than or equal to 3 each time, if it is then stop the loop using AMBREAK --->
<AMVARIABLE NAME="indexvar"></AMVARIABLE>
<AMLOOP TOTALLOOPS="6" RESULTVARIABLE="indexvar">
<AMMESSAGEBOX>%indexvar%</AMMESSAGEBOX>
<AMIF EXPRESSION="%indexvar% &gt;= 3">
  <AMBREAK>
</AMIF>
</AMLOOP>

General Tab Parameters

This action has no parameters.

See Also

Loop, End Loop, Loop Files, Loop Windows, Loop Processes, Loop Expression, Loop Dataset, Loop List