if (condition) statement;
where
is an expression that is evaluated
to be either true or false. If the condition is true, then the statement
will execute. If it is false, then the statement will not execute. The
conditions are expressed using a rational operators which you can find in
the following table (2.7)
Operator | Meaning |
> | greater than |
>= | greater than or equal to |
< | less than |
<= | less than or equal to |
== | equal to |
!= | not equal to |