" symbol?"/> " symbol?" /> " symbol?" /> " symbol?" /> " symbol?" />

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

Control Flow: Switch Forum

View Course

776 points
5605bbec86f552c733000498_716823715
Submitted by
Eric Person
over 1 year ago

Why is there a ">" symbol?

Here's my code:

<?php
    if (5 > 50) {
        echo "5 > 50";
    }
    elseif (5 == 50) {
        echo "5 = 50";
    }
    else {
        echo "5 < 50";
    }
?>

For some reason, it prints "5 < 50 >". Why does it do that?