Skip to main content

AndExpression

@webda/ql


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​

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​

LogicalExpression.constructor

Properties​

children​

children: Expression<string>[] = []

Defined in: packages/ql/src/query.ts:694

Child expressions combined by this logical operator

Inherited from​

LogicalExpression.children


operator​

operator: "AND"

Defined in: packages/ql/src/query.ts:463

Inherited from​

LogicalExpression.operator

Methods​

eval()​

eval(target): boolean

Defined in: packages/ql/src/query.ts:733

Parameters​

target​

any

Returns​

boolean

Overrides​

LogicalExpression.eval


toString()​

toString(depth?): string

Defined in: packages/ql/src/query.ts:708

Parameters​

depth?​

number = 0

Returns​

string

Inherited from​

LogicalExpression.toString