Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jorvis01
Newbie


Joined: 14 Jan 2011
Posts: 4
Location: US

PostPosted: Tue Jan 25, 2011 3:14 pm   

Unmatched brackets...AH!
 
I don't code. This is an attempt to do something I can't do.
Code:
#IF (@balance=0 and @EQ=0){
#IF @sprawled=1{stand}}

Quote:
ERROR: Syntax error in Alias: curevar : unmatched braces


It's something so simple but I can't figure it out. That code seems like it shouldn't have an ERROR.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Jan 25, 2011 4:28 pm   
 
You didn't put parentheses around the second #IF test. This is the correct format:
Code:
#IF (@balance=0 and @EQ=0) {
#IF (@sprawled=1) {stand}}
Reply with quote
jorvis01
Newbie


Joined: 14 Jan 2011
Posts: 4
Location: US

PostPosted: Tue Jan 25, 2011 10:42 pm   
 
Yes! Thank you!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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