Is this an error?


Under your if statement on line 12, write an else statement to capture the people who are only buying 5 items or fewer. In their case, use echo to output "You get a 5% discount!"

My code:
$items = 3;

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


Error message:

Oops, try again. Did you accidentally change the condition in your if statement? It looks like your code didn't print 'You get a 5% discount!'

Am I missing something blindingly obvious?


worked eventually but nothing changed...




you get a 5% discount!

is not this:

You get a 5% discount!

The interpretrer is case sensitive and marks that as an Error!

Hope i could help you.