|
masterkrueger Wanderer
Joined: 24 Jan 2010 Posts: 65 Location: Hamburg
|
Posted: Sat Jun 19, 2010 11:55 am
Easy way to remove double strings in stringlist? |
How do i remove double strings like
@DoubleList = {Bob|Jim|Bob}
I tried to go through it with %countlist and checking if %val > 1
Maybe there is an easier way?
Thanks |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sat Jun 19, 2010 2:12 pm |
Check out the %dups() function. Like so:
Code: |
@DoubleList = %dups(@DoubleList) |
|
|
|
|
masterkrueger Wanderer
Joined: 24 Jan 2010 Posts: 65 Location: Hamburg
|
Posted: Sat Jun 19, 2010 3:46 pm |
Thanks :)
|
|
|
|
|
|