Derek++ 0 Posted February 3, 2014 Report Share Posted February 3, 2014 I'm trying to get the equivalent of this to work in Ubot Studio (standard)... $ui_list = array('AL','AK','AZ'); // etc $subdomains = array('AL' => 'alabama','AK' => 'alaska','AZ' => 'arizona'); $domain = $subdomains[current($ui_list)].".example.com/"; ...Since ubot arrays don't seem to support key=>value pairs I think I have to use tables but am not sure how to this. Quote Link to post Share on other sites
Edward_2 85 Posted February 3, 2014 Report Share Posted February 3, 2014 Maybe the "set table cell" command. Quote Link to post Share on other sites
Derek++ 0 Posted February 3, 2014 Author Report Share Posted February 3, 2014 The set table cell command won't work because I'm trying get column from value from the table not set a value. What I'm looking for is something similar to the set list position function but instead of using the row number I'd like to set the list position based on the value of a column. Then get the value of another column in the corresponding row. Quote Link to post Share on other sites
Steve 30 Posted February 3, 2014 Report Share Posted February 3, 2014 There's actually a couple of ways you can probably do what you need with tables. Option 1) Try looping through through a table until you find what you are looking for. Now you have the index and can modify/read the columns as needed.Option 2) Use the "$table search" function to do a search on the table and return the index where it was found. Then you can modify/read the columns on that row as needed. I don't have time right now to put together an example, but if you still need help later, I'll throw something together for you. Quote Link to post Share on other sites
Derek++ 0 Posted February 3, 2014 Author Report Share Posted February 3, 2014 Thanks! The $table search was what I was looking for. I don't need an example I can get it from here. Quote Link to post Share on other sites
Steve 30 Posted February 4, 2014 Report Share Posted February 4, 2014 No prob. Glad I could help. 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.