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
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Sun Nov 13, 2005 11:03 pm   

possible problems in %expandlist
 
Let:
queue = "A|B|C"

And consider the function:
%expandlist(@queue, " %cr")

when I run this from the command prompt such as:
#SAY %expandlist(@queue, " %cr")
I get:
A %crB%cr C%cr

when I run it from an alias:
#ALIAS status_update {status_variable = %expandlist(@queue, " %cr")}

and then look at the contents of status_variable
I get:
status_variable = "A"

Question: why is this happening, and how do I prevent it.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Nov 13, 2005 11:21 pm   
 
Don't use quotes around the %cr

#SAY %expandlist(@queue,%cr)
status_variable=%expandlist(@queue,%cr)
#SAY @status_variable
_________________
Zmud Support Library
Zmud Knowledge Base
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