Whenever you are programming, one fundamental aspect is the ability to ask a question. The main construct available to do this is the if statement and the if/else statement.
The if statement simply takes a conditional expression (ie, it evaluates to true or false) and will perform a set of actions if that condition is true. The general form of an if statement is as follows :