This has probably already been spotted in an earlier chapter but who cares. It will be covered here anyway. If and Else are used to test which path to follow based on the conditions that are specified.
The following example shows how if statements can be used. Note that they can be used any type, not just integers.
The example function is passed a integer. Depending if the value numberValue is less/greater/equal to 10 a different message is printed. As you can see if one then one condition is being tested you can use if/elseif/endif.