The following example shows <break/> used inside <if> to determine when to break loop processing for a <while> statement:
...
<while condition="true()">
<display message="while-loop:" expr="$cnt"/>
<assign fromexpr="$cnt + 1" outputvariable="cnt"/>
<if condition="$cnt > 10">
<display message="enough already..." />
<break/>
</if>
</while>
For a working sample mashup, see the WhileSample (
while.emml). See
Mashup Samples for a list of
MashZone NextGen mashup samples and where to find them.