If and Else


#1

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

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


#2

HI this line remove the ; at the end

if(5 > 3); <---

#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."


#4

Nvm I fixed it. It's all good now


#5

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