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
malas
Newbie


Joined: 21 Jan 2004
Posts: 4

PostPosted: Sat Jan 24, 2004 8:05 pm   

problems with #if/%if
 
Has anyone else had a problem posting an if/else combination. Whenever I just use the true value of the if it works fine, but if I add the false value it just dumps everything to the mud.

example

#if (@a) {#var b 2}

works fine but

#if (@a) {#var b 2}{#var c 3}

dumps "{#var b 2}{#var c 3}" to the mud. It doesn't process anything or send just one, it just dumps everything to the mud. This is a major pain because you have to create multiple #if statements for each case and can cause processing problems with variable states if you are resetting variables used in the #if condition.
Reply with quote
user0101
Apprentice


Joined: 01 Aug 2003
Posts: 100
Location: USA

PostPosted: Sat Jan 24, 2004 8:52 pm   
 
You need a single space in between the true-false.

#if (@a) {#var b 2} {#var c 3}
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