Gandolf
Joined: 18 Oct 2005 Posts: 12 Location: Milwaukee, WI
|
Posted: Tue Nov 08, 2005 3:58 pm Post subject: Hows that '#if' work again? |
|
|
(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 |
|