arc:break

Version 23.4.8839


arc:break

Version 23.4.8839


The arc:break keyword can be used to break out of iterations of arc:call or arc:enum. It can also be used to break out of the entire script if it is used outside the scope of any other ArcScript keywords.

Parameters

None

Control Attributes

None

Examples

Break out of arc:enum. The example below lists the first two attributes of the item foo:

<arc:set attr="foo.attr1" value="value1"/>
<arc:set attr="foo.attr2" value="value2"/>
<arc:set attr="foo.attr3" value="value3"/>

<arc:enum item="foo">
[_index]: [_attr] has the value [_value]. 
<arc:equals attr="_index" value="2"> 
<arc:break/>
</arc:equals>
</arc:enum>

See Also ——–

  • arc:continue: Continue to the next item.
  • arc:enum: Loop over the values of an item, list, range, or multivalued attribute.
  • arc:call: Loop over items returned by an operation.