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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
makena
Apprentice


Joined: 11 Aug 2006
Posts: 100

PostPosted: Thu Aug 24, 2006 5:40 pm   

%len
 
In Zmud this worked, now I cannot seem to get it to work..

Code:
#alias a

{
#if {%len( %0)=0} {SessionA:}
#if {%len( %0)>1} {:SessionA:%0}
}


Seems as though %len() is not working yet, anyone know for sure?
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Thu Aug 24, 2006 5:54 pm   
 
Try change:
#if {%len( %0)=0} {SessionA:}
#if {%len( %0)>1} {:SessionA:%0}

to:
#if (%len( %0)=0) {SessionA:}
#if (%len( %0)>1) {:SessionA:%0}

The condition should be surrounded by parantheses, not by brackets :).
Reply with quote
makena
Apprentice


Joined: 11 Aug 2006
Posts: 100

PostPosted: Thu Aug 24, 2006 10:13 pm   
 
Thanks, working perfectly now. Didn't notice that change. :(
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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