All together now!


#1

Hi!
Here is my code:

<html>
  <head>
  </head>
  <body>
    <p>
      <?php
        // Write your if/elseif/else statement here!
        $Trumps = 1000000;
        if($Trumps > 10){
            echo "I'm really rich. And you're fired!"
        }
        else {
            echo "i got a small loan of a million dollars..."
        }
      ?>
    </p>
  </body>
</html>

It throws the error: Oops, try again. It looks like you didn't print anything!
Thanks already


#2

You have to add semicolon after the echo statements.


Is it this exercise -> https://www.codecademy.com/en/courses/web-beginner-en-QF3Wb/0/4? If so, you should print out "The condition is false".


#3

or maybe you were required to put an 'else-if ' statement before the 'else'


#4

Thanks a lot for the answer


#5

You're very welcome.


#6

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