If statements (PHP)


I dont understand why i cant proceed, this is how my code looks below.
It says "Oops, try again. Make sure to edit the condition line 9 so that it is true."

        $items = 8;    // Set this to a number greater than 5!
        if($items < 5) {
          echo "You get a 10% discount!";


You want the condition to be true. You're checking to see if $items is less than 5, which it isn't, so it returns false.
Change it to something like checking if it's greater than 5, as that will return true.


Thx :smiley: it's working now


if($items > 5)
do this.It will work then.
8<5 is a false condition that is why it is asking you to put in a true condition.