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


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Jan 01, 2004 1:12 am   

Help on an alias involving %iskey and %db
 
I wrote an alias:
#IF (%iskey( @serverList, %1)) {~logon %db( %serverList, %1)} {~logon %1}

And what I wanted it to do was check to see if the parameter was a key in @serverList, and if it was I wanted it to "logon (value associated with the key)" and "logon %1" if the parameter is not part of @serverList but it doesn't work, all it does is "logon" no matter what I type, help anyone?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jan 01, 2004 3:01 am   
 
#IF (%iskey( @serverList, %1)) {~logon %db( @serverList, %1)} {~logon %1}
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Thu Jan 01, 2004 8:30 am   
 
D'OH! Thanks LightBulb, such a simple mistake =/
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