Core Function IsDeclared

From Sputnik Wiki
Revision as of 10:30, 28 November 2011 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
IsDeclared( <variable name> )

Contents

Description

Check if a variable has been declared

Parameters

Expression

string representing name of the variable to be checked.

Return Value

Success: Returns 1 if variable has been assigned.

Failure: Returns 0 if variable doesnt exist yet.

Remarks

Example

If (!IsDeclared("a"))
    MsgBox('$a is NOT declared');     // $a has never been assigned
 
$a=1;
 
If (IsDeclared ("a"))
    MsgBox('$a IS declared');      //due to previous $a=1 assignment
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox