Break Action Icon

Break Action

Declaration

<AMBREAK>

See Also

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

Description

Breaks out of a loop.

Practical Usage

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.

Parameters

General Tab

No parameters.

Notes

Standard Error Handling Options
This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs

More on Error Handling Options

Variables and Expressions
All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.
More on variables...
More on expressions...
More on the expression builder...

Examples

<AMVARIABLE NAME="MYCOUNTER">
<AMLOOP FROM="1" TO="10" INDEX="MYCOUNTER">
  <AMMESSAGEBOX MESSAGETEXT="%MYCOUNTER%">
  <AMIF EXPR="MYCOUNTER = 5">
  <AMBREAK>
  </AMIF>
</AMLOOP>