Scoped GlideSystem - nil(Object o)

Queries an object and returns true if the object is null, undefined, or contains an empty string.

Table 1. Parameters
Name Type Description
o Object The object to be checked.
Table 2. Returns
Type Description
Boolean True if the object is null, undefined, or contains an empty string; otherwise, returns false.
var gr = new GlideRecord();
gs.info(gs.nil(gr));

Output: