Conditions allow PHP to make decisions based on whether something is true or false. An if/else statement chooses between different blocks of code depending on a condition. A switch statement compares one value with several possible cases and runs the code belonging to the case that matches.