While Loops


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?

$LoopCond = false;
do {
echo "

The loop ran even though the loop condition is false.

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

Now the loop is done running.



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.