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

Conditionals and Control Flow Forum

View Course » View Exercise

25 points
Picture
Submitted by
Johanna Martola
about 3 years ago

I cannot continue from Conditionals 4/4 (if/else) - system doesn't accept any code

section "Conditionals": 4/4

Is the system stuck or is there a bug?

I have tried in several ways to write the if - else code but the the system keeps sayng says my else code is not right.
I wrote a code using both true and false clauses but I still cannot pursue the exercise:

<?php
if (3<2) {
echo "yaiks";
}
else {
echo "huhuu";
}

Can anyone help


1 vote

permalink

PHP Condicionales y Control de flujo 4/4, (Conditional and Flow Control 4/4):

<?php
// Escribí tu sentencia if/elseif/else acá.
if(10 < 3) {
echo "La condición es verdadera";
}
else {
echo "The condition is false!";
}
?>

644 points
448d1b05815d80eec914c8922a978988?s=140&d=retro
Submitted by
Abner Hernandez
about 3 years ago

1 Comment

Picture Rosanna Remezzano almost 3 years ago

¡¡¡Gracias!!! El tuyo fue el único código que lo hizo funcionar (cambié "La condición es verdadera" por "The condition is true"). =)


0 votes

permalink

Maybe you just forgot the closing statement at the very end: ?>

711 points
49336d9a930060582dec2aa02b619ec8?s=140&d=retro
Submitted by
bns23
about 3 years ago