SDU
Personal tools

Is null

From SDU

Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

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

Usage

bool is_null(attr);
  • attr - any variable to be checked

Results

Returns true if attr is NULL otherwise false.

Examples

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;
}
string contact_persid;
if (!is_null(group))
{
  contact_persid = misc::find_mang(group);
}
This page was last modified 09:30, 24 September 2010.  This page has been accessed 948 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers