CA Service Management

CA SDM::.SPEL::. Is null 

Jan 25, 2017 07:21 AM

Is null

 

Overview

A spell function checking if a given attribute equals to a NULL value or not.

Usage

<source lang="javascript"> bool is_null(attr); </source>

  • attr - any variable to be checked

Results

Returns true if attr is NULL otherwise false.

Examples

<source lang="javascript"> if(is_null(string1)) {

 // Enter an alert message that appears when the if statement is fulfilled  zmsg=format(" string1 is required in order to close this ticket");  set_error(1);  set_return_data(zmsg);  return;

} </source> <source lang="javascript"> string contact_persid; if (!is_null(group)) {

 contact_persid = misc::find_mang(group);

} </source>

Statistics
0 Favorited
8 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.