Control Flow
if (boolean-expression) statement1 else statement2
switch (value-expression) { case static-value1: statement1 case static-value2: statement2 ... default: statement }
while (boolean-expression) //executes 0 or more times statement do statement while (boolean-expression) //executes 1 or more times
for (initial-expression; boolean-expression; incremental-expression) statement
unwraps to:
{ initial-expression; while (boolean-expression) { statement incremental-expression; } }
label-name: statement break [label-name]; //psuedo "goto" continue; //skips remainder of loop and eval
return;
return value;
where value has type to be returned