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
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Fri Jan 12, 2007 11:59 am   

Using %defined.
 
Ola.
I wanna check is defined macro F11, I tried use #sh %defined(F11) but it not works. Any suggestions?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Jan 12, 2007 4:56 pm   
 
%defined is for variables. I think the only way to check for a macro existing by script is through the COM interface. Check out the following documentation:
http://www.zuggsoft.com/zmud/comzmud.htm
http://www.zuggsoft.com/zmud/comserve.htm
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Hemdall
Wanderer


Joined: 30 Nov 2006
Posts: 50

PostPosted: Fri Jan 12, 2007 5:24 pm   
 
defined

Syntax: %defined(s)

returns true if s is a defined alias, variable, macro, or path.
Example:

#VAR a {}

#VAR b { }
#UNVAR c
#SHOW a:%defined(a) b:%defined(b) c:%defined(c)

Displays:

a:1 b:1 c:0
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