| Format: <break> |
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.
Example:
| resulting output: | |
<let i = 0; a="Asterix"; while i < len(a); if a[i]=="x"><break></if; i = i + 1; /while; ? left(a,i)> | Asteri |
Here is an example how to leave a User-defined Environment tag:
Example:
| resulting output: | |
<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>). |