<break> end a loop prematurely

name
break
xml namespace
http://moyaproject.com

This tag will break a loop such as <while>, <for>. When Moya encounters this tag, it jumps to the statement after the loop.

Example

<let crew="['John', 'Rygel', 'Scorpius', 'Aeryn']"/>
<for src="crew" dst="character">
    <if test="character == 'Scorpius'">
        <echo>Taking off before Scorpius gets on board!</eco>
        <break>
    </if>
    <echo>${character} is on board</echo>
</for>
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes