Kev 69 Posted May 28, 2013 Report Share Posted May 28, 2013 Hi all, I have a list that on some lines it has the same results in twice - see below image: http://content.screencast.com/users/koconnor00/folders/Jing/media/ac564ce0-454e-4386-ae51-d860cbff6496/2013-05-28_0919.png What I'm doing is taking each list item and adding it to a "$next list item" however i run across a problem when one of the list items has that double line in it. I don't want to remove the duplicates as some lines have no data in them (and that's ok, I need to know that) so by deleting duplicates it would get rid of them. So, I dont mind setting a variable as a list item, however if I do that it will set the variable to exactly what is in each line, including the duplicate rows. How can I get around this? Thanks, Kev Quote Link to post Share on other sites
jomark3 25 Posted May 28, 2013 Report Share Posted May 28, 2013 In add list list to list, choose Don't Delete Quote Link to post Share on other sites
VaultBoss 310 Posted May 28, 2013 Report Share Posted May 28, 2013 Well, you actually need to loop through the list and run each item through an IF to detect if it's empty (and leave it like that), while when it is not empty to get only one instant of the dupe there. Quote Link to post Share on other sites
LazyBotter 188 Posted June 4, 2013 Report Share Posted June 4, 2013 This is how I would do it. clear list(%placespagedata) clear list(%placespagedata_sorted) add item to list(%placespagedata, "Item 1 Item 1", "Delete", "Global") add item to list(%placespagedata, "Item 2 Item 2", "Delete", "Global") add item to list(%placespagedata, "Item 2", "Delete", "Global") set(#placespagetext, %placespagedata, "Global") add list to list(%placespagedata_sorted, $list from text(#placespagetext, $new line), "Don\'t Delete", "Global") Carl Quote Link to post Share on other sites
blumi40 222 Posted June 4, 2013 Report Share Posted June 4, 2013 set(#cleaner, %yourlist, "Global")clear list(%yourlist)add list to list(%yourlist, $list from text(#cleaner, $new line), "Delete", "Global")easy and works fast 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.