@isnull() Function

Top  Previous  Next

@isnull() function is used to check if the given symbol exists. If the symbol exists true is returned even though its value is blank.

Syntax:

@isnull(symbol)
 

symbol

MScript Symbol.

This function is the opposite of the exists() function

 

Examples:

@doif( isnull(i:NAME) ) 

  ..

@doend()

 

@set(s:/si/SSTR, isnull(i:SSTR) ? \rl : i:SSTR) 

@// Assignment is done only if there is a request parameter with name SSTR, otherwise the whole line removed.

 
See Remover commands.