The “if” Control Structure
•
The syntax of the if control structure is:
•
•
if ( boolean_expression )
•
{
•
statements…
•
}
•
If boolean_expression returns “true” then
the statements inside the braces are
executed. If the expression is false then
those statements are skipped.