Contents
Syntax
The syntax for
do-while{options}(condition) { //loop code-block }
@do-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
@do-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 do-while(i < 10) console("i: `i+=1`")
int i=0 do-while{!s, !o}(i+=1; i<10) console("i: ", i)
n++ example
Examples of
@int i=0 @do-while{\n}(i < 10) i: @++(i)
@int i=0 @do-while{f++, !o, !s}(i+=1; i<10) { //f++ code for scripting }