Andy Ross said:

> Jim Wilson wrote:
> > The "nasal" script doesn't work on the keyboard binding for the "c"
> > key (99).  I can't see any problem, and there apparently are not any
> > useful debugging methods for nasal scripts
> 
> Have you tried print?  It goes out via the standard SG_LOG channel as
> an alert.  It's true that there isn't a symbolic debugger for Nasal
> yet. :)
> 
> > if (property) {
> > }
> >
> > Does not work if the "property" type is undefined.
> 
> I'm a little confused.  Is "property" completely unset (which should
> cause a symbol lookup failure), or does if have a value of nil (which
> should have a boolean value of false)?
> 

If you have xml:

<property>true</property>

then the test

if (property) {
}

will fail.


If you have xml:

<property type="bool">true</property>

then the test

if (property) {
}

will work.

At least this is what I think I was seeing.

Best,

Jim


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to