Is empty
From SDU
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.
To discuss or ask questions about this article, select the discussion tab above.
Overview
A spell function checking if a given attribute is an empty string or equals to a NULL value.
Usage
bool is_empty(attr);
- attr - any string variable to be checked
Results
Returns true if attr is NULL or is an empty string, otherwise returns false.
Examples
if(is_empty(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_empty(contact_persid)) { // ... }
Categories: Customizations | R6 | R11 | R12 | Spell Code




