Logical AND or OR expression combining multiple filter conditions.
Combines multiple Expressions with either AND or OR logic:
AND/OR expressions can be nested to create complex filtering logic. Use AND when all conditions must be met, OR when any condition can match.
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const activeAndWorthOver50k: AndOrExpression = { op: Operator.AND, exp: [ { key: 'status', op: Operator.EQUALS, exp: 'active' }, { key: 'value', op: Operator.GREATER, exp: 50_000 }, ],}; Copy
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const activeAndWorthOver50k: AndOrExpression = { op: Operator.AND, exp: [ { key: 'status', op: Operator.EQUALS, exp: 'active' }, { key: 'value', op: Operator.GREATER, exp: 50_000 }, ],};
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const urgentOrHighValue: AndOrExpression = { op: Operator.OR, exp: [ { key: 'priority', op: Operator.EQUALS, exp: 'urgent' }, { key: 'value', op: Operator.GREATER, exp: 1_000_000 }, ],}; Copy
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const urgentOrHighValue: AndOrExpression = { op: Operator.OR, exp: [ { key: 'priority', op: Operator.EQUALS, exp: 'urgent' }, { key: 'value', op: Operator.GREATER, exp: 1_000_000 }, ],};
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const waitingOrOpenAndHighPriority: AndOrExpression = { op: Operator.AND, exp: [ { op: Operator.OR, exp: [ { key: 'status', op: Operator.EQUALS, exp: 'open' }, { key: 'status', op: Operator.EQUALS, exp: 'waiting' }, ], }, { key: 'priority', op: Operator.EQUALS, exp: 'high' }, ],}; Copy
import { AndOrExpression, Operator } from '@limetech/lime-web-components';const waitingOrOpenAndHighPriority: AndOrExpression = { op: Operator.AND, exp: [ { op: Operator.OR, exp: [ { key: 'status', op: Operator.EQUALS, exp: 'open' }, { key: 'status', op: Operator.EQUALS, exp: 'waiting' }, ], }, { key: 'priority', op: Operator.EQUALS, exp: 'high' }, ],};
Array of expressions to combine with the logical operator.
Logical operator: AND requires all expressions to match, OR requires at least one.
Logical AND or OR expression combining multiple filter conditions.
Combines multiple Expressions with either AND or OR logic:
AND/OR expressions can be nested to create complex filtering logic. Use AND when all conditions must be met, OR when any condition can match.
Example: AND, find active deals with value over $50k
Example: OR, find deals that are either urgent or high value
Example: Nested, (status='open' OR status='waiting') AND priority='high'
See