Condition.children

Property Description

An array of child conditions used to create the parent condition.

Note:

This property is applicable to only parent conditions created with the execution of Query.and(conditions), Query.or(conditions), or Query.not(condition).

Type

query.Condition[] (read-only)

Module

N/query Module

Parent Object

query.Condition

Sibling Object Members

Condition Object Members

Since

2018.1

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.

            // Add additional code
...
    var myCustomerQuery = query.create({
        type: query.Type.CUSTOMER
    });
    var myFirstCondition = myCustomerQuery.createCondition({
        fieldId: 'openingbalance',
        operator: query.Operator.GREATER,
        values: 10000
    });
    var mySecondCondition = myCustomerQuery.createCondition({
        fieldId: 'email',
        operator: query.Operator.START_WITH_NOT,
        values: 'foo'
    });
    var myComplexCondition = myCustomerQuery.and(myFirstCondition, mySecondCondition);
    var theChildren = myComplexCondition.children;
...
// Add additional code 

          

Related Topics

General Notices