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


Joined: 11 Mar 2002
Posts: 93

PostPosted: Thu Feb 19, 2004 8:26 pm   

#IF and variables
 
I am trying unsuccessfuly to figure out how to work this.

I have 2 variables.. Balance and Morph

Balance is either true or false
Morph can be any number of things but the if I am using is
looking for two specific things

#IF (@Balance AND @Morph = "Wyvern" or "Jaguar") {Do command}

This though.. doesnt work

Is there a way to make this work?
Reply with quote
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Thu Feb 19, 2004 8:35 pm   
 
#IF (@Balance AND (@Morph = "Wyvern" or @Morph = "Jaguar")) {Do command}


When using both AND and OR's in a if, you should really use parens to set the order. Also, in your or statement, you need a condition. just saying OR "Jaguar" is not a correct condition.
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