Bot-Factory 602 Posted February 23, 2014 Report Share Posted February 23, 2014 Hello. I would like to increment a variable name in a loop. The goal is to have 10-n variables configured. But in a loop. Manually it would look like:set(#status1, "1", "Global")set(#status2 "1", "Global")set(#status3, "1", "Global")set(#status4, "1", "Global")set(#status5, "1", "Global") Basically I want to do something like:loop($list total(%dlls)) { set(#status1, $next list item(%status), "Global")} But instead of using a static variable like status1, I want this to increase automatically. Something like this: But this doesn't work with a SET command.loop($list total(%dlls)) { set(#status{$list position(%dlls)}, $next list item(%status), "Global")} Within the variable text, I can use other variables. So this works fine: set(#newhtml, "{#newhtml}<input type=\"checkbox\" variable=\"#status{$list position(%dlls)}\" fillwith=\"checked\">{$next list item(%dlls)}</label><br>", "Global") Any idea how this could be done? ThanksDan Quote Link to post Share on other sites
kev123 132 Posted February 23, 2014 Report Share Posted February 23, 2014 I don't think you can in ubots current form. I have a plugin key for setting several variables at once or resetting several variables at once. Its a free plugin key but I wont be completing it until week after next. 1 Quote Link to post Share on other sites
pftg4 102 Posted February 23, 2014 Report Share Posted February 23, 2014 you can use my dynamic variables take a look won't work in html panel tho http://www.ubotstudio.com/forum/index.php?/topic/13310-sell-dynamic-variables-by-dave-botgurunet/ hope it helps Quote Link to post Share on other sites
UBotDev 276 Posted February 23, 2014 Report Share Posted February 23, 2014 Or you could use local dictionary plugin from Aymen. http://www.ubotstudio.com/forum/index.php?/topic/15327-free-local-dictionary-plugin-local-variables-issue-workaround/ Quote Link to post Share on other sites
Bot-Factory 602 Posted February 23, 2014 Author Report Share Posted February 23, 2014 you can use my dynamic variables take a look won't work in html panel tho http://www.ubotstudio.com/forum/index.php?/topic/13310-sell-dynamic-variables-by-dave-botgurunet/ hope it helpsGreat Thanks! Will take a look. Dan 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.