|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: Array] [Home] [Next: Date]
ECMAScript provides a Boolean data type. In general, creating objects of this type is not recommended since the behavior will probably not be what you would expect.
Instead, use the boolean constants true and false as required. Any expression can be evaluated in a boolean context, e.g. in an if statement. If the expression's value is 0, null, false, NaN, undefined or the empty string "", the expression is false; otherwise the expression is true.
[Prev: Array] [Home] [Next: Date]
Copyright © 2001-2006 Trolltech | Trademarks | QSA version 1.1.5
|