%exists() Function

Top  Previous  Next

%exists() function is used to test whether the specified symbol exists. The function returns true if the symbol exists even if it has no value.

Syntax:

%exists(symbol)
 

symbol

CScript symbol.

 

%exists(), is opposite of %isnull() function

 

Examples:

%doif( exists(NAME) ) 

  ..

%doend()

 

%vof(exists(EMAIL) ? 

  set(s:EMAIL, EMAIL) )

%// If symbol EMAIL exists, assign its value to s:EMAIL symbol.