Added: 2 years ago
From: DevHQLessons
Views: 1,578
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Lua so far has the simpliest looping method of all the languages i've seen :P.

  • when i did the repeat loop i copied your but it printed 6 hellos so i just put "until i==5 instead or i>5 becuase you will have the extra one counting over 5 :D also these are reaally healpfull dude..please keep then goinyg

  • Can't you just do an "If" statement instead of the "while"?

  • @Elliottslingsby We could do an if statement inside the loop and then break out of the loop if a certain condition is true - but we couldn't use an if on it's own as it would only check the condition and run the code inside, once.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more