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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Sun Jun 08, 2003 1:56 pm   

Variable lists
 
Anyone written a scriptor some other means to sort variable lists alphabetically?

Shalimar

AIM: shalimarwildcat
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sun Jun 08, 2003 2:15 pm   
 
______________________________________________________________

sort

Syntax: %sort(list[,dir])

returns the list with items sorted in alphabetical order. If Dir is missing or zero, list is sorted in ascending order. If Dir is non-zero, list is sorted in descending order.
Examples:

#VAR slist {123|ab|45|008|789|ABC|ab cd|def|9}
#SHOW %sort(@slist)

displays:

008|123|45|789|9|ab|ab cd|ABC|def

#SHOW %sort(@slist,1)

displays:

def|ABC|ab cd|ab|9|789|45|123|008
______________________________________________________

Stright from the help files that come with Zmud :)

megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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