Biks 9 Posted February 3, 2012 Report Share Posted February 3, 2012 How do I tell Ubot to cycle through a list, then once I hit the end, start again from the top? Somebody had mentioned how to do that a while ago..can't find it. Quote Link to post Share on other sites
gfpoow 0 Posted February 4, 2012 Report Share Posted February 4, 2012 i think you can use set list position command and with value 0 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 4, 2012 Report Share Posted February 4, 2012 set a variable outside before the loop. loop while (#var < $list total) at the end of the loopadd a increment on the #var after it add a if statement if (comparison #var >= $list total)set #var = 0elsedo nothing this will make that loop continually loop, start at the beginning and start over at the end Note your list position should be also determined by #varfor the list item Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.