Class: QgsExpressionNodeBetweenOperator

SQL-like BETWEEN and NOT BETWEEN predicates.

Added in version 3.26.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: QgsExpressionNode.needsGeometry()

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionNodeBetweenOperator

Base classes

QgsExpressionNode

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

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:
virtual 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]

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

bool