isGlobalVariableExists

isGlobalVariableExists ( string variableName ) : boolean

Check if a global variable exists and return true or false.

Example


sessionData = "toto"
def local = "I a local"

console(isGlobalVariableExists("sessionData")) //-> true
console(isGlobalVariableExists("local")) //-> false
console(isGlobalVariableExists("nonExistentVar")) //-> false

Parameters

variableName

The name of the variable to check.