This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Damji Heo
about 9 years

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";
    }  
  ?>

Answer 54b851d986f552b8e0003b34

1 vote

Permalink

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

points
Submitted by tony_isco
about 9 years

Answer 54ac8cc0d3292f736500324d

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

points
Submitted by hithere.
about 9 years

2 comments

Damji Heo about 9 years

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

Damji Heo about 9 years

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

Answer 54aeebf8e39efe75490082de

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.

points
Submitted by AndreaAu
about 9 years

Answer 54b6d6e893767622a60007ba

0 votes

Permalink

ı am getting same wrong message too.

points
Submitted by EMRE YASA
about 9 years