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

Conditionals and Control Flow Forum

View Course » View Exercise

362 points
542a0d6352f8630cfa000b92_818429714
Submitted by
Damji Heo
over 2 years ago

I keep getting this error message

Oops, try again. It looks like your code didn't print 'The condition is false'. Make sure your if/else statement is set up correctly, and that your condition evaluates to false.

  <?php
    // Write your if/elseif/else statement here!
    if ( 10 >7) {
      echo "The condition is true";
    }  
    else {
      echo "The condition is false";
    }  
  ?>

1 vote

permalink

The equation has to evaluate false so 1 >2 . The code is right

144 points
1fcb560b3425ff0b45a1bf9d793e3f7e?s=140&d=retro
Submitted by
tony_isco
over 2 years ago


0 votes

permalink

this happened to me as well. But i noticed your parameter ( 10 >7) should have a space after greater than sign. Hope maybe that's the issue

132 points
C9f47f2d613b1feeee19f9432cd3251a?s=140&d=retro
Submitted by
hithere.
over 2 years ago

2 Comments

542a0d6352f8630cfa000b92_818429714 Damji Heo over 2 years ago

i did 10 > 7 but it still doesn't work ;-(

542a0d6352f8630cfa000b92_818429714 Damji Heo over 2 years ago

I found what I did wrong. I should've put 10<7 to run else statement too.


0 votes

permalink

I'm getting the same error, This condition is false shows up in the window on the right, but the error message says my code didn't print it.

159 points
F6efa122922a2ee66445125eae9a9a45?s=140&d=retro
Submitted by
AndreaAu
over 2 years ago


0 votes

permalink

ı am getting same wrong message too.

658 points
519f1c5dc3adb21bfe002741_735474066
Submitted by
EMRE YASA
over 2 years ago