Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: 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
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sat Jun 19, 2010 2:12 pm   
 
Check out the %dups() function. Like so:
Code:
@DoubleList = %dups(@DoubleList)
Reply with quote
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: Sat Jun 19, 2010 3:46 pm   
 
Thanks :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net