Conditional statements are used when you want something to happen when a condition is either true or false. You can either use the If or Switch conditional statements. Conditional statements are case sensitive and must be written in lowercase.
If statements are used when you want to check one condition
else if is added after the if statement and allows you to check for another condition.
else is added after the if and else if statement and allows you to do something when all previous conditions fail.
|