arc:break
Version 24.2.9039
Version 24.2.9039
arc:break
Use the arc:break keyword to break out of iterations of arc:call or arc:enum. You can also use it to break out of an entire script if it is used outside the scope of any other ArcScript keywords.
Parameters
None
Control Attributes
None
Example
Break out of arc:enum. The following example 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 multi-valued attribute.
- arc:call: Loop over items returned by an operation.