About All Together Now!


#1

Hi I need your help!

I can't pass this stage. How is wrong?
<?php
// Write your if/elseif/else statement here!
$i = 3;
if( $i > 2 ){
echo "The condition is true";
}elseif( $i < 2){
echo "The condition is false";
}else{
echo "The condition is false";
}
?>


#2

You can't pass because your code should evaluate to false and show the message "The condition is false."
So your code could look something like this:
<?php

$i = 3;
if($i == 2){
	echo "The condition is true";
} elseif($i < 2) {
	echo "3 is greater than 2"; 
} else {
	echo "The condition is false";
}

?>


#3

Thanks I could pass it!!