if

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

 

Can be followed by an (optional) else statement.

 

 

Simple code to show if condition is true:

 

Simple code to show if condition is false:

Leave a Reply