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

Hows that '#if' work again?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
Gandolf



Joined: 18 Oct 2005
Posts: 12
Location: Milwaukee, WI

PostPosted: Tue Nov 08, 2005 3:58 pm    Post subject: Hows that '#if' work again? Reply with quote

(this post was edited after I finally determined my error, it originally listed my improper usage and was questioning why it didn't work if I had done exactly like the example...)

The documentation shows this example for #IF:

Code:
#act {%0 tells you} {#if "%0" == "Scandum"} {tell %0 I'm afk Sir} {tell %0 I'm afk dude}}


As is, this example spawns an error. I spent quite a while trying many things until I went back and re-read the usage syntax very carefully:
Syntax: #if {condition} {true} {false}

The example SHOULD appear as:
Code:
#act {%0 tells you} {#if {"%0" == "Scandum"} {tell %0 I'm afk Sir} {tell %0 I'm afk dude}}



I am using tintin++ v1.95.6
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3281

PostPosted: Tue Nov 08, 2005 8:04 pm    Post subject: Reply with quote

Fixed it in the help file. Thanks for letting me know.
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 -> Script Help 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