PHP Conditions

If/Else Example

10 is greater than 5

Switch Case Example

Today is Wednesday

Conditions make decisions on whether something is true or false and choose what to do. If something is true, it will run a part of a code but if it's false, it can run a different block, for example an else statement.