Looping with 'While'


So I have this code:

i = 1
while i > 51 do
  print i

But it just says


in the console.

\`\`\` not working sometimes
\`\`\` not working sometimes

Two problems:

  1. You are probably missing the end keyword.
  2. Your while condition isn't perfect.



I see what you mean.


I tried your solution. I actually had the end keyword, but the condition was wrong. When I changed it, the code worked.