TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

returning an empty value

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
pfn



Joined: 12 May 2006
Posts: 13

PostPosted: Thu Sep 27, 2007 6:13 pm    Post subject: returning an empty value Reply with quote

In 1.96.5 and earlier (don't know about up until I just upgraded), #return {} would set $return to an empty string, now, in 1.97.5 when I try #return {} I get it set as {} which is not desired. If I don't return at all, I just get the literal $return as the result of my function, which is also undesired.

How do I return an empty result in 1.97.5?

Code:

* HP:Healthy MV:Strong > #return {}
#OK. VARIABLE {result} HAS BEEN SET TO {{}}.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Sep 28, 2007 6:42 am    Post subject: Reply with quote

Should be fixed for the next release.

To work around it you could use #format result %s to create an empty variable.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group