Who can tell me how to pass 2.2 if statement?


#1

please write code here ???
here my code but it doesn't work
<?php
$age = 19;

    if($items < 5) {
      echo "You get a 10% discount!";

}
?>


#2

Your 'if' doesn't evaluate to true. Your $items is equal to NULL, which wont give 'true' inside 'if' and therefore your text will not be printed.

You should set the $items variable to something smaller than 5. Also, why you even have $age variable in this exercise?