Conditions in PHP use Comparative and Logical operators to determine if a defined condition is true and then executes a block of code associated with that condition.

The terms if, else, and elseif guide the script down the list of defined conditions to check if the condition is true.

If and elseif provide conditions to check, and elseindicates to execute a block of code if all previous conditions were false.

Switch/Case statements accomplish the same goal of an elseif statement using tighter syntax and so is preferred over long elseif statements.

This item is on sale!

This item is low on stock.

Get this item for less than $20!