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

Control Flow: Switch Forum

View Course

398 points
55a57e0be39efeb58c000681_173286104
Submitted by
Dean Friedland
over 1 year ago

1/6 Why is this not working? Cannot move forward!

Not sure why this will not work but it is saying "Oops, try again. Are you sure you made an else if condition?" Makes no sense because it is rendering the output box.
//

<?php
$Age = 17;

if ($Age < 16) {
    echo "Awesome!";
    }
    else {
        echo "Hell no!";
        }
?>

0 votes

permalink

Nevermind. Figured it out.

398 points
55a57e0be39efeb58c000681_173286104
Submitted by
Dean Friedland
over 1 year ago


0 votes

permalink

You forgot the elseif part

218 points
37cb3a28e639c28c6df2fcbd416452be?s=140&d=retro
Submitted by
fabiokings2
over 1 year ago