Index    EarthC language


Control Structures

EarthC accept the following control structures:

block instruction:

{
    instruction;
    ....
}

if (condition)
    instruction;

if (condition)
    instruction;
else
    instruction;

while (condition)
   
instruction;

do
    instruction;
while (
condition);

for(expression;condition;expression)
    instruction;

you can also use simplified forms e.g. for(;;)

break;