Query entity with multiple logical expressions

A Score Level 2

Is it possible to have a query entity with multiple logical expressions? i.e. have a query entity that has a logical expression that 'AND's a set of filters and another logical expression that 'OR's a set of filters and 'AND's those two logical expressions together. Any info is greatly appreciated

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    To perhaps put it more simply, a!queryLogicalExpression() has the logicalExpressions: parameter specifically for this reason.  So you can make basically any combination of nested entries as needed.  If your top logical expression uses an "AND" operator, then it will return results that match all entries in the "filters" parameter as well as within the "logicalExpressions" parameter - so here you could potentially have a nested logical expression that uses the "OR" operator.

Reply
  • 0
    Certified Lead Developer

    To perhaps put it more simply, a!queryLogicalExpression() has the logicalExpressions: parameter specifically for this reason.  So you can make basically any combination of nested entries as needed.  If your top logical expression uses an "AND" operator, then it will return results that match all entries in the "filters" parameter as well as within the "logicalExpressions" parameter - so here you could potentially have a nested logical expression that uses the "OR" operator.

Children
No Data