While Loops


#1

Hi Everyone-

I'm getting an error message in Section 6.6 of the "While Loops" Unit. I keep getting the error message, "Oops, try again. Did you put parentheses around $LoopCond?" Any suggestions?







<?php
$LoopCond = false;
do {
echo "

The loop ran even though the loop condition is false.

";
} while ($LoopCond == true);
echo "

Now the loop is done running.

";
?>


#2

The error message suggests that we do not need to write the full expression, only,

...} while ($loopCond);

Notice that we use a lowercase letter at the beginning of the variable name. This is how it is specified in the instructions, I believe.