SFU.isUndefined()
- Last UpdatedJun 25, 2024
- 1 minute read
Use isUndefined() method to determine if an object is defined or not or if an object is null.
Syntax
bRetVal = SFU.isUndefined(object);
Parameters
|
Parameter |
Description |
|---|---|
|
object |
Object to determine. |
Return Value
This method returns a boolean value.
Example
// Get the Country control by XML node.
var countryControlObject = control.findByXmlNode("Country");
// Check whether the Country control exists.
var countryControlExists = SFU.isUndefined(countryControlObject);
if (countryControlExists){
// Perform required operations.
}