Class: QgsExpressionNodeBetweenOperator

SQL-like BETWEEN and NOT BETWEEN predicates.

Added in version 3.26.

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionNodeBetweenOperator

Base classes

QgsExpressionNode

Abstract base class for all nodes that can appear in an expression.

Methods

evalNode

higherBound

Returns the higher bound expression node of the range.

lowerBound

Returns the lower bound expression node of the range.

negate

Returns True if the predicate is an exclusion test (NOT BETWEEN).

node

Returns the expression node.

prepareNode

class qgis.core.QgsExpressionNodeBetweenOperator[source]

Bases: QgsExpressionNode

__init__(node: QgsExpressionNode | None, nodeLowerBound: QgsExpressionNode | None, nodeHigherBound: QgsExpressionNode | None, negate: bool = False)

This node tests if the result of node is between the result of nodeLowerBound and nodeHigherBound nodes. Optionally it can be inverted with negate which by default is False.

Parameters:
__init__(a0: QgsExpressionNodeBetweenOperator)
Parameters:

a0 (QgsExpressionNodeBetweenOperator)

evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]
Parameters:
Return type:

Any

higherBound(self) QgsExpressionNode | None[source]

Returns the higher bound expression node of the range.

Return type:

Optional[QgsExpressionNode]

lowerBound(self) QgsExpressionNode | None[source]

Returns the lower bound expression node of the range.

Return type:

Optional[QgsExpressionNode]

negate(self) bool[source]

Returns True if the predicate is an exclusion test (NOT BETWEEN).

Return type:

bool

node(self) QgsExpressionNode | None[source]

Returns the expression node.

Return type:

Optional[QgsExpressionNode]

prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]
Parameters:
Return type:

bool