@exists() Function

Top  Previous  Next

@exists() function is used to check whether the given symbol exists. If the symbol exist, whether its value is empty or not, true otherwise false is returned.

Syntax:

@exists(symbol)
 

symbol

An MScript symbol.

 

exists() is opponent of isnull() function.

 

Examples:

@doif( exists(i:NAME) ) 

  ..

@doend()

 

@vof(exists(i:SSTR) ? 

  set(s:/si/SSTR, i:SSTR) ) 

@// Perform the assignment if request parameter SSTR exists in the request.