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
ragautier
Beginner


Joined: 11 Aug 2007
Posts: 29

PostPosted: Tue Sep 11, 2007 12:49 pm   

Conditional Expression?
 
Is there an iif()-like function in cMUD? I want to set as status text something like:
#STATUS iif(@sanc,"SANC","nosanc")

Aside from setting the sanc value to the string itself, how can I do this?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Sep 11, 2007 1:20 pm   
 
Yes there is it is %if, and you got the rest of the syntax right.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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