Scoped GlideQueryCondition - addCondition(String name, String oper, Object value)

Adds an AND condition to the current condition.

Table 1. Parameters
Name Type Description
name String The name of a field.
oper String (Optional) The operator for the query. If you do not specify an operator, the condition uses an equals operator.
value Object The value to query on.
Table 2. Returns
Type Description
GlideQueryCondition A reference to a GlideQueryConditon that was added to the GlideRecord.
var gr = new GlideRecord('incident');
var qc = gr.addQuery('category', 'Hardware');
qc.addCondition('category', 'Network');