|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jan 01, 2004 3:01 am |
#IF (%iskey( @serverList, %1)) {~logon %db( @serverList, %1)} {~logon %1}
|
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Thu Jan 01, 2004 8:30 am |
D'OH! Thanks LightBulb, such a simple mistake =/
|
|
|
|
|
|
|
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
|
|