Skip to content
Developerhome
Sage Distribution and Manufacturing Operations

Combining several conditions

  Less than to read

Conditions can be combined with and and or conditions by using an array in the following formats:

The following example uses the and condition:

filter:"[{totalTaxAmount: 0},{isIntercompany:false}]"
filter:"[{totalTaxAmount: { _lt: 1000}},{isIntercompany:false}]"

The following example uses the or condition:

filter:"{ _or: [{totalTaxAmount: 0},{isIntercompany:false}]}"
filter:"{ _or: [{totalTaxAmount: { _lt: 1000}},{isIntercompany:false}]}"

For the or condition, you can also use the _or operator to combine conditions.