Ridge 0 Posted February 10, 2015 Report Share Posted February 10, 2015 Hello, I'm trying to check and see if account are being upgraded or not, however I can't seem to figure out how to do this. I thought of adding a column to my table that's purpose was to look for a certain element that would determine if they were premium accounts or free ones. However I don't know of a way to add information like this to a list. I'm currently messing around and this is the best I could come up with, but it when it loops it doesn't add a new line, it just overwrites the current line. set list position(%upgraded, 0) loop(10) { if($exists(<title="Home">)) { then { add item to list(%upgraded, 1, "Delete", "Global") wait(1) } else { add item to list(%upgraded, 0, "Delete", "Global") wait(1) } } navigate("http://www.ubotstudio.com/resources", "Wait") } So basically I need it so if the element is present it'll add the item "1" for true and if it isn't present then it'll add the item "0" for false. The problem is it doesn't add a new line with the new variable in the list. Even after 10 loops this is what the debugger looks like: http://puu.sh/fIE2H/c8d1755973.png I need it to have 10 items after it's been run 10 times, how would I go about this? Quote Link to post Share on other sites
deliter 203 Posted February 10, 2015 Report Share Posted February 10, 2015 you need to change add item to list to not delete duplicates,happens to us all ha Quote Link to post Share on other sites
gavind 6 Posted February 13, 2015 Report Share Posted February 13, 2015 Hi Ridge, have you figured out a way on how to do this yet? Quote Link to post Share on other sites
Ridge 0 Posted February 15, 2015 Author Report Share Posted February 15, 2015 Yes, the error was it was set to delete dups, by default lol. 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.