If/else statements are very useful because they allow your code to be expressed in certain situations but not in others. You can control when those situations occur by using control statements such as if/else. Before we delve any further, a basic If / Else statement in PHP looks like the following: Simply put, if a condition happens to be true, the code in pink will be executed. If the condition happens to be false, the code in orange, will be executed. The Else statement is optional though. If you do not specify an Else statement, your code will not do anything if the condition happens to be false. For example, here is the code without an Else statement: -------------------------------------------------------------------------------- Let's take an example involving a robot called kirupaTron that is programmed to do among many other things, cross a busy intersection. kirupaTron is at an intersection. He is programmed to wait for the Walk light before crossing the int...