|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles Qt Script for Applications

[Prev: NaN] [Home] [Next: Built-in Functions and Operators]

undefined

This is the value of a variable that does not have a defined value, i.e. has not been assigned to.

Example:

    var i;
    // ...
    if ( i == undefined ) {
        i = 77;
    }

In this example, if execution reaches the if statement, and i has not been assigned a value, it will be assigned the value 77.

[Prev: NaN] [Home] [Next: Built-in Functions and Operators]


Copyright © 2001-2006 TrolltechTrademarks
QSA version 1.1.5