OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Jim Short on March 07, 2009, 07:58:23 AM

Title: Button isEnabled method requiring a boolean responds unexpectedly
Post by: Jim Short on March 07, 2009, 07:58:23 AM
T works, True does not
F works, and so does False and Nil

Why not True?
Title: Re: Button isEnabled method requiring a boolean responds unexpectedly
Post by: owenwengerd on March 07, 2009, 08:14:38 AM
It depends what True is set to. You could (setq True 'T), then it will work, otherwise the symbol True will be NIL.
Title: Re: Button isEnabled method requiring a boolean responds unexpectedly
Post by: Jim Short on March 07, 2009, 09:08:02 AM
Since T is true by lisp and True is just an undefined symbol evaluating to nil unless otherwise set.

Any an symbol evaluating to nil would serve as false.

Best to use t and nil.

Thanks,
Jim