LordPorker 7 Posted June 6, 2016 Report Share Posted June 6, 2016 I need a UI command when the user can input there own products in a box, and have it seperated on a new line like: sofacouchtelevision Then have UB loop and take an item (ie sofa), search for it (then delete it), and then take the following item (ie couch, and then delete when taken), etc. I've tried using UI command: block text, but it lumps all the items together. I don't want to have the user open a file, so how can I achieve this? Thanks. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 6, 2016 Report Share Posted June 6, 2016 ui block text("Items",#items) clear list(%items) add list to list(%items,$list from text(#items,$new line),"Delete","Global") loop($list total(%items)) { set(#item,$list item(%items,0),"Global") alert("current item is: {#item}") remove from list(%items,0) set(#items,$text from list(%items,$new line),"Global") } 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.