The while loop is correct! but i can't continue?


#1

Hi all,

i'm stuck

After I open de result window to full screen. If I don't do that it will keep loading the result screen.

After I pressed the fullscreen button I get the correct answer but when I go back to the editor I get this error message.
"Oops, try again. Please follow the instructions on the Full Preview page to test your code."


    <?php
    $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>";
    ?>
    </body>
</html>


#2

*update I see that i forgot to add the "." but it still won't accept the code.


#3

Are you getting a new error message?
Have you tried reloading/refreshing the web page?


#4

A post was split to a new topic: Expected p:first-child text to be equal to The loop is running. but got The loop is running


#5

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