Re: #if command

will guaraldi <[email protected]> Mon, 13 Dec 2004 22:34:34 -0600 (CST)
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
The example is wrong.  If you read the help file, it says it needs to be 
Python syntax.

So:

   #if {$$x == 145 and $$y == 5) {#showme AAAAAAAA}

should work.

/will


On Tue, 14 Dec 2004, Bartosz wrote:
> 
> Hi,
> What I am doing wrong?
>
> #if {$$x == 145 && $$y == 5} {#showme AAAAAAAA}
> if: invalid syntax / syntax error.
>
> <cut from help:>
>
> # examples:
> #   #if {$myhpvar < 100} {#showme PANIC!}
> #   #if {$myhpvar < 100 && $myspvar < 100} {#showme PANIC!}     <- it should work
> #   #if {'$name' == 'Joe'} {#showme That joe is a jerk.}
>
> <end cut>
>
> but it does not!
>
> #if {$myhpvar < 100 && $myspvar < 100} {#showme PANIC!}
> if: invalid syntax / syntax error.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/