Whats wrong with this?


#1






<?php
$items = 10;

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

else {
echo "You get a 5% discount!";
}

  ?>
</p>


#2

@pywhiz33895,
The code you are presenting is from section-3 "Adding an ELSE"
$items should get a number Value of 3
causing the ELSE codeblock to be executed
which is an
echo "You get a 5% discount!";