Jump to content
UBot Underground

Set Variables in a loop


Recommended Posts

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?

 

Thanks

Dan

Link to post
Share on other sites

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. 

  • Like 1
Link to post
Share on other sites

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

Great Thanks! Will take a look.

 

Dan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...