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
Yodous
Apprentice


Joined: 23 Jun 2004
Posts: 105
Location: Poland

PostPosted: Fri Oct 09, 2009 12:34 am   

Tabs in functions (%)
 
Hi.
I hav some function, let's name it 'test' with value:
Code:
#RETURN %switch(%ends(%1, a), %leftback(%1, 1)e,%ends(%1, u), %leftback(%1, 1)a,true, %1a)

To make it more flexible for modify I would like to looks it somehing like:
Code:
#RETURN %switch(%ends(%1, a), %leftback(%1, 1)e,
   %ends(%1, u), %leftback(%1, 1)a,
   true, %1a
   )

But it doesn't work. I must say, that in my function there are far more conditions than only presented 3 (this is only an example).
Can You please Zugg consider making functions works, even if inside their bodies are used 'enter' key?

Best regards
Yodous

PS. Maybe You have some other idea, how to face a lots of conditions, instead of %switch() or a lots of %if() :)[/code]
Reply with quote
Yodous
Apprentice


Joined: 23 Jun 2004
Posts: 105
Location: Poland

PostPosted: Fri Oct 09, 2009 12:42 am   
 
The same thing is when trying to use #SWITCH and put some 'enter' and 'tab' keys to make it more readable and more flexible for future editing.
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