While Loop Syntax


#1


While Loop Syntax

It says: "expected p:first-child text to be equal to The loop is running. but got The loop is running"


Replace this line with your code. 

$loopCond = true;
	while ($loopCond == true){
		//Echo your message that the loop is running below
	echo "<p>The loop is running</p>";
	
		$loopCond = false;
	}
	echo "<p>And now it's done.</p>";


#2

Hi this line

echo "<p>The loop is running</p>";

just add a dot after running


#3

Yea, I figured out, one second ago :slight_smile: Thank you :smile: