Skip to content

Statements

Stardust D.L edited this page Jan 17, 2018 · 1 revision

Statements

Basic

We use , to split each statement (or expression).

If-Else

if(condition){
    then-part
}{
    else-part
}

While

while(condition){
    code
}
do(condition){
    code
}

For

for(begin,condition,step){
    code
}
foreach(collection or iterator, variable name){
    code
}
Clone this wiki locally