AndExpression
Class: AndExpression
Defined in: packages/ql/src/query.ts:722
Logical AND expression — evaluates to true only if all children are true
Uses short-circuit evaluation: returns false as soon as any child fails.
An empty AND (no children) evaluates to true.
Extends
LogicalExpression<"AND">
Constructors
Constructor
new AndExpression(
children):AndExpression
Defined in: packages/ql/src/query.ts:726
Parameters
children
Expression<string>[]
Expressions to use for AND
Returns
AndExpression
Overrides
Properties
children
children:
Expression<string>[] =[]
Defined in: packages/ql/src/query.ts:694
Child expressions combined by this logical operator
Inherited from
operator
operator:
"AND"
Defined in: packages/ql/src/query.ts:463
Inherited from
Methods
eval()
eval(
target):boolean
Defined in: packages/ql/src/query.ts:733
Parameters
target
any
Returns
boolean
Overrides
toString()
toString(
depth?):string
Defined in: packages/ql/src/query.ts:708
Parameters
depth?
number = 0
Returns
string