By using logical operators we can compare numbers in the if statements to determine the truth of certain comparisons. Is one equal to one? Hopefully so.
Number Comparison
Here are the sources used in this tutorial:
tut004.php
<?php $tires = 4; $discountAfter = 150; $cost =40*$tires; echo "currently: $cost. "; if($cost >= $discountAfter){ $cost = 0.95*$cost; echo "Congrats you get a 5% discount, and your new total is $cost!"; } ?>