bhat 0 Posted May 29, 2017 Report Share Posted May 29, 2017 I have my ubot script on loop. What's the best way to have it log down somewhere the amount of times it runs the loop? And how to do this? Thanks Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted May 29, 2017 Report Share Posted May 29, 2017 You can do it many ways, here are two. clear list(%my list) add list to list(%my list,$list from text("1,2,3,4,5,6",","),"Delete","Global") set(#index,0,"Global") loop($list total(%my list)) { set(#next list item,$next list item(%my list),"Global") wait(1) increment(#index) } ui stat monitor("list position: {$list position(%my list)}","<br>index vairable: {#index} <br> <br>NLI: {#next list item}") Hope that helps,Nicklist postion and index - example.ubot 2 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.