salehqqqq 0 Posted July 13, 2018 Report Share Posted July 13, 2018 hi i make script and i make loop in it I have texts and images that should every cycle in loop take one text and one image I but in loop number ( $list total) , I but in the loop (Set) $next list item to my texts and my images it's work by take texts and images and post it together now …! how can I make the loop stop when he finish the texts list or images list what should but in ( Loop number ) Quote Link to post Share on other sites
pash 504 Posted July 13, 2018 Report Share Posted July 13, 2018 try set list position(%images,0) set list position(%texts,0) if($comparison($list total(%images),">=",$list total(%texts))) { then { set(#loopMax,$list total(%images),"Global") } else { set(#loopMax,$list total(%texts),"Global") } } loop(#loopMax) { set(#image,$next list item(%images),"Global") set(#text,$next list item(%test),"Global") if($both($comparison(#image,"!=",""),$comparison(#text,"!=",""))) { then { comment("Do something") } else { } } } Quote Link to post Share on other sites
UBotBuddy 331 Posted July 13, 2018 Report Share Posted July 13, 2018 You can also use: http://wiki.ubotstudio.com/wiki/Stop_Script Buddy 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.