Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Templates > Tags > <while>

<while>

  <while [ label="symbollabel" ] (expr|true|false)="exprcondition" >
    statement *
  </while>

A ``whileยดยด tag executes contained statements as long as condition expression evalutes to true (or false). See while statement.

Attributes:

label
Optional label for the use of break and continue statements.
expr
Condition expression.
true
Condition expression, same as expr.
false
Negated condition expression. I.e. statements are executed as long as the condition yields "false".

Note: conditions are mutually exclusive.

See also  | Tags  | Statement tags
Contributes notes:
Add a note
What's new | Anvil