Contents
Syntax
The syntax for
while{options}(condition) { //loop code-block }
@while{options}(condition) { //loop code-block }
Note: Single-line code blocks do not need to be enclosed in parentheses.
Description
The
Note:
Note: If not writing to the output file
@while{!o}(condition) { # block }!
Options
The following options are available for
option | description |
---|---|
parse |
|
parse |
|
do not add output | |
add scope | |
do not add scope | |
do not add newline between each loop iteration | |
add double newline between each loop iteration | |
add |
|
option | description |
f++ example
Examples of
int i=0 while(i < 10) console("i: `i+=1`")
int i=0 while{!s, !o}(i+=1; i<10) console("i: ", i)
n++ example
Examples of
@int i=0 @while{\n}(i < 10) i: @++(i)
@int i=0 @while{f++, !o, !s}(i+=1; i < 10) { //f++ code for scripting }