Jump to content
UBot Underground

Setting Variable NAMES with Variables, is this possible?


Recommended Posts

I am having this same problem. Here's the post I made regarding this a couple days ago http://www.ubotstudio.com/forum/index.php?/topic/11917-check-box-list-box-or-impossible/

 

In reading through this post, I think I'm having the same issue as the OP. For those that say this would not be useful, I wonder why you don't see our points. I have say 100 accounts that I need to check regularly, but I don't always need to check all of them every time. I am pulling orders from the accounts, and oftentimes, there are not orders on all the accounts. So I have written html that will create a check box and variable for each account name. When I check the boxes, the value changes to true, but I have no way of running an if/then because I can't say:

 

if>#($list item(%Accounts,0))=$true, then (do this)

 

So if my customer wants to add more accounts, I have to build him a new bot rather than just have this update dynamically. Why wouldn't you want to make every possible thing you could dynamic for a better end user experience? I am very new to coding, so maybe I'm just completely missing the big picture here, but I'm hoping someone can help me out with a solution.

  • Like 1
Link to post
Share on other sites
  • 2 months later...
I am having this same problem. Here's the post I made regarding this a couple days ago http://www.ubotstudio.com/forum/index.php?/topic/11917-check-box-list-box-or-impossible/

 

In reading through this post, I think I'm having the same issue as the OP. For those that say this would not be useful, I wonder why you don't see our points. I have say 100 accounts that I need to check regularly, but I don't always need to check all of them every time. I am pulling orders from the accounts, and oftentimes, there are not orders on all the accounts. So I have written html that will create a check box and variable for each account name. When I check the boxes, the value changes to true, but I have no way of running an if/then because I can't say:

 

if>#($list item(%Accounts,0))=$true, then (do this)

 

So if my customer wants to add more accounts, I have to build him a new bot rather than just have this update dynamically. Why wouldn't you want to make every possible thing you could dynamic for a better end user experience? I am very new to coding, so maybe I'm just completely missing the big picture here, but I'm hoping someone can help me out with a solution.

Exactly!

 

Bumping this up.   I posted another thread too with a slightly different explanation but I'm in the same exact situation.

http://www.ubotstudio.com/forum/index.php?/topic/12643-how-to-cycle-through-variables-in-a-loop/

Link to post
Share on other sites

It is not possible with UBS to have variables that change their names dynamically, as you envision here... unfortunately.

 

All you can do is eventually have some table (that you can load from a .csv file) where you define a column with an index and another column with variable name.

 

Then you can loop through the table, checking the index (numeric) and extracting the variable to be used from the second column.

 

This is not exactly what you want though, but you could try to make it work for you that way...

 

Hope this helps you...

 

Cheers!

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...