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
@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.
Lua so far has the simpliest looping method of all the languages i've seen :P.
TheFenastus 2 months ago in playlist Lua Tutorials
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
djloudify 2 months ago in playlist Lua Tutorials
Can't you just do an "If" statement instead of the "while"?
Elliottslingsby 1 year ago
@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.
DevHQLessons 1 year ago