Home Forums General Programming Lua basics: Loops

This topic contains 2 replies, has 2 voices, and was last updated by  human fly 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #73567

    human fly
    Participant

    for us Lua newbie babies (and because i just made this
    and others might find it useful), here’s a little panel
    demonstrating ‘for’, ‘while’, and ‘repeat…until’, as per
    the tutorials here:

    https://www.tutorialspoint.com/lua/lua_loops.htm

    found that ‘for’ includes the bounds values whereas
    the other two start from the next value – unless
    someone can show how to avoid that with a=a+1

    Attachments:
    You must be logged in to view attached files.
    #73597
    dnaldoog
    dnaldoog
    Participant

    Great! – didn’t know about repeat .. until (condition==true) loops.

    #73603

    human fly
    Participant

    hey, have a look here, you might enjoy this little panel:

    simple sequencer

    a small issue at the moment as it loads, but recompile
    the method, and it runs.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.