Class: QgsExpressionNodeBetweenOperator

SQL-like BETWEEN and NOT BETWEEN predicates.

Added in version 3.26.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionNodeBetweenOperator

Base classes

QgsExpressionNode

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

Methods

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.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsExpressionNodeBetweenOperator. See the FAQ for more details.

evalNode

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