tooltrainer 12 Posted January 16, 2010 Report Share Posted January 16, 2010 I do this sort of thing in PHP all the time but I'm not sure it can be done in UBot, but it sure would be useful. Here's pseudocode: foreach(list item){if item is emptychange item to equal "n/a"} The loop part is easy, but I don't think we can change a value in a list on the fly like this... can we? Anyone? Jonathan Quote Link to post Share on other sites
webautomationlab 21 Posted January 16, 2010 Report Share Posted January 16, 2010 Off the top of my head, you would want something like Loop List Total = OriginalList >Set CurrentItem (Var) = Next List Item (OriginaList) >If >>Eval >>>CurrentItem = $nothing >>Set CurrentItem >>>n/a >Add to list, AlteredList >>CurrentItem After you exit the loop, You could set OriginalList to AlteredList if you need to maintain the original list name. Something like this, maybe. Quote Link to post Share on other sites
tooltrainer 12 Posted January 16, 2010 Author Report Share Posted January 16, 2010 Yep that's more or less what I ended up doing... using more than one list. Ideally I'd love to just edit the list being parsed as you can in a true programming language, but I don't think UBot can handle that. This workaround gets the job done though! Jonathan 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.