Purpose: The break Tag leaves a while loop, for loop, forin loop, or a User-defined Environment Tag. Program execution continues with the next statement after the corresponding end tag. If there is no loop or environment to leave, then break leaves the current procedure.
<let i = 0; a="Asterix"; while i < len(a); if a[i]=="x"><break></if; i = i + 1; /while; ? left(a,i)>
Here is an example how to leave a User-defined Environment tag:
<defenv dosomething><defbody></defenv; dosomething> I do this I do that <break> But I won't do that </dosomething>
I do this I do that
|Note: The break Tag is Case Sensitive, which means heitml will not recognize it if you use capital letters (e.g. <BREAK>).|