Conditions allow the use of logic in PHP. They are used to execute different blocks of code depending on if the written condition evaluates to true or false.
Additionally, conditions work in conjunction with operators.

Example of an if/else condition

var1 + var2 does not equal 30

PHP case

i equals 2