Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Condition.children for more information.
N/query Module
Condition.children
Property Description:
An array of child conditions used to create the parent condition.
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
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Condition.children
Example:
// Code Example 1
// 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
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510789455.html