If and Else


I don't know what's wrong...

        if(5 > 3); {
        echo "This condition is true";
        else {
       echo "This condition is false";
       }// Write your if/elseif/else statement here!


HI this line remove the ; at the end

if(5 > 3); <---


Now it says "t 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."


Nvm I fixed it. It's all good now


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.