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
Eleri at'Xalien
Newbie


Joined: 19 Mar 2008
Posts: 5

PostPosted: Sat Jul 19, 2008 5:50 pm   

Simple if/then question (Solved)
 
This is fairly simple, but I'm ashamed to say, I can't seem to figure out the syntax for CMUD.

Code:

#VAR test1 1
#VAR test2 2
#IF {@test1 == @test2} {#SHOW true} {#SHOW false}


Now, from all the documentation I've seen, that should work and show false. Right now, it always shows true. What am I missing in an if statement?


Last edited by Eleri at'Xalien on Sat Jul 19, 2008 5:57 pm; edited 1 time in total
Reply with quote
Toxic
Adept


Joined: 27 May 2008
Posts: 299

PostPosted: Sat Jul 19, 2008 5:55 pm   
 
#if (@test1 = @test2) {#show true} {#show false}
Reply with quote
Eleri at'Xalien
Newbie


Joined: 19 Mar 2008
Posts: 5

PostPosted: Sat Jul 19, 2008 5:57 pm   
 
Thanks, I was using the wrong paranthesis.
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