if, else, elseif

Consists of a boolean expression (evaluating to true or false), followed by one or more statements

 

if(test condition) {

//execute this code block if TRUE

}


Can be followed by an (optional) else statement.

 

elseif allows for an additional test condition statements

 

Leave a Reply