Often you want to check if a statement is true and then if it is, go down one path, and if it isn't down another. The IF statement is perfect for this. IF statements work in conjunction with logical operators.
int a = 0 ; if a == 0 PrintMessage A_IS_EQUAL_TO_ZERO ; else PrintMessage A_IS_NOT_EQUAL_TO_ZERO ; endif
Notice that the keywords if (followed by the statement that is checked for validity), else and endif are in their own lines!
The else is NOT required. If you don't have branching of this sort, you can skip it like this:
int a = 0 ; if a == 0 PrintMessage A_IS_EQUAL_TO_ZERO ; endif
This just means we're only concerned with what happens when A is 0. In all other cases, nothing will happen.