| |
break Tag
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:
input: | 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:
input: | 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>).
|
This page was dynamically generated by the
web application development tool RADpage
of H.E.I.
See "Was ist AJAX? "
(in German). In Germany H.E.I. provides Webdesign in Mannheim and
Web Programming (Programmierung).
© 1996-2025 H.E.I. All Rights Reserved.
|