Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Statements > Simple statements > Statement modifiers

Statement modifiers

The simple statements break, continue, exit, expression, print, return, throw, and yield may be modified with a statement modifier. There are two possible modifiers:

An If modifier affects the statement so that it will be evaluated only when the conditional expression evaluates to "true".

A While modifier affects the statement so that it will be evaluated in a loop as long as the conditional expression evaluates to "true".

  stmt-modifier := ( "if" exprcondition | "while" exprcondition ) 
See also  | Expression statements  | Print  | Return  | Yield  | Break  | Continue  | Continue .. case  | Throw  | Exit  | Grammar
Contributes notes:
Add a note
What's new | Anvil