Scoped GlideElement - nil()

Determines if a field is null.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the field is null or an empty string, false if not.
var glideRecord = new GlideRecord('incident'); 
glideRecord.query('priority','1'); 
glideRecord.next(); 
gs.info(glideRecord.state.nil());

Output: