This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Conditionals and Control Flow Forum

View Course » View Exercise

405 points
D585c6952f9602f5a73ab45ca923dbbf?s=140&d=retro
Submitted by
glidi
over 2 years ago

What is the problem with the code below?

<?php

  if (8 < 3) {
      echo "This condition is true";
  }
  else {
      echo "This condition is false";
  }

  ?>
</p>

0 votes

permalink

Hi there,

You're comparing if 8 < 3, and it should be 8 > 3. Does it work when you fix that?

2818 points
5674c6dae39efec455000434_879409444
Submitted by
Zeke Y
over 2 years ago


0 votes

permalink

I fixed days a go. Anyway, Thank U:)

405 points
D585c6952f9602f5a73ab45ca923dbbf?s=140&d=retro
Submitted by
glidi
over 2 years ago

1 Comment

5674c6dae39efec455000434_879409444 Zeke Y over 2 years ago

OK, well I'm glad you fixed it!


-3 votes

permalink

you are writing code outside of the php scope, remove the </p> tag

861 points
517c7166c0b022aab20015eb_102647231
Submitted by
Fedson Dorvilme
over 2 years ago

1 Comment

5674c6dae39efec455000434_879409444 Zeke Y over 2 years ago

@Fedson Dorvilme, that's not the problem, he's inside the PHP tags.