Adding an Else - Hint does not match question


Error is: Oops, try again. Did you set your else statement to echo or print 'You get a 5% discount'? Don't forget your semicolon at the end!

Replace this line with your code. 
        $name = "Edgar";
        if($name == "Simon") {
          print "I know you";
        else {
            print "Who are you?";
</html><img src="//" width="690" height="418"><img src="//" width="690" height="418">

As you can see what we are told to do and what the hint requires us to write is wrong. This needs to be fixed.


This is code from the explanation, not from the hint section. Hint is below the instructions.

You should work some more on your reading skills :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.