if statement
You can use an if statement to make a decision. You should give the if statement a condition to use. If the condition is true, the following block of code will be executed. Conditions in if statements must be surrounded by parentheses ()
Example
if ($totalqty == 0)
echo 'You did not order anything on the previous page!<br />';