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

Conditionals and Control Flow Forum

View Course » View Exercise

57 points
235f72c452487f3bdbf3ec6a360570a2?s=140&d=retro
Submitted by
Nyvina Walker
over 2 years ago

What is wrong with this?

<?php
if (3 > 20) {
echo "This condition is true";
}
else {
echo "This condition is false.";
}
?>


1 vote

permalink

Same as you guys, how to valide that and go to the next step ? :)

117 points
Picture
Submitted by
Ylias
over 2 years ago


1 vote

permalink

I correct it, guys !

Just F5 the page and try to add $items :

 <?php
    // Write your if/elseif/else statement here!
     $items = 3;
    if($items>5) { echo "the condition is true"; }
    else {echo "the condition is false"; }
  ?>

117 points
Picture
Submitted by
Ylias
over 2 years ago

2 Comments

Bb1a9a31e5e7efe8af3d80fcb74d2660?s=140&d=retro TheiaCoding over 2 years ago

thanks this works

E031be0b4d9e6565404e4355d84a3364?s=140&d=retro janegeorge over 2 years ago

thank you...for this


0 votes

permalink

I don't know! My code is good too, like yours, but don't let me to pass the lesson.

254 points
19faf7df2667b42068f2be5501c4425f?s=140&d=retro
Submitted by
dany01may
over 2 years ago

1 Comment

C5f569a73b90aedbf4dd267b7d9a171e?s=140&d=retro debrab44 over 2 years ago

my isn't working either.


0 votes

permalink

I don't know! My code is good too, like yours, but don't let me to pass the lesson ,too

32 points
Picture
Submitted by
Äħʍěd Ätîîà
over 2 years ago


0 votes

permalink

My code is the same but it isn't working I can't get past this to the next lesson.

43 points
C5f569a73b90aedbf4dd267b7d9a171e?s=140&d=retro
Submitted by
debrab44
over 2 years ago


0 votes

permalink

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

1246 points
55c7afa2937676dc6a000065_90077525
Submitted by
Alejandro
about 2 years ago