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
rtatum
Novice


Joined: 19 Sep 2004
Posts: 45
Location: Houston

PostPosted: Tue Sep 21, 2004 12:25 am   

Help with #IF
 
When you're using #IF, can you check multiple things...? Like... #IF (@variable1 == 2342 & @variable2 == 1111) {Then do stuff}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Sep 21, 2004 12:31 am   
 
Yes you can. See the help on Expressions for more info. Generally I reccommend placing each comparison in parenthesis to insure the order of operation is exactly what you want. For example:
#IF ((@variable1 == 2342) & (@variable2 == 1111)) {Then do stuff}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rtatum
Novice


Joined: 19 Sep 2004
Posts: 45
Location: Houston

PostPosted: Tue Sep 21, 2004 12:35 am   
 
Thank you very much Vijilante
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