While Statement
About
Templates use a single section to define the syntax of While Statements.
It uses a special code to designate where the While Statement's block is
inserted..
The following definitions are from a simplified version of the Java
Programming Language template. Note that the block's indentation is inceased by 1
level.
Java Example |
[While] |
Text |
= while({condition}) {{ |
|
|
|
= -->BLOCK |
| |
| 1 |
|
= } |
|
|
Text Key
The text key is used to generate the syntax of the Output Statement.
Fields |
Contents |
{condition} |
The conditional expression. The
syntax is generated by the various function/expression sections. |
{not condition} |
The conditional expression negated using
DeMorgan's Law. The
syntax is generated by the various function/expression sections. |
The first and last flags can be used if the syntax differs for the first
or last statement in the block.
Flags |
When True |
block |
The statement's block contains one or more
items. |
first |
The statement is the first item in the
block. |
last |
The statement is the last item in the
block. |
To insert the While Statement's block, use
a single line containing the following special codes. If you want to
change the indentation of the block, make sure to specify the indent after
the second pipe |.
Special value |
What it does |
-->BLOCK |
Inserts the code generated from the While
Statement's block. |
|