Class: QgsExpressionNodeBetweenOperator¶
SQL-like BETWEEN and NOT BETWEEN predicates.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Abstract base class for all nodes that can appear in an expression.  | 
Methods
Returns the higher bound expression node of the range.  | 
|
Returns the lower bound expression node of the range.  | 
|
Returns   | 
|
Returns the expression node.  | 
|
- 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
nodeis between the result ofnodeLowerBoundandnodeHigherBoundnodes. Optionally it can be inverted withnegatewhich by default isFalse.- Parameters:
 node (Optional[QgsExpressionNode])
nodeLowerBound (Optional[QgsExpressionNode])
nodeHigherBound (Optional[QgsExpressionNode])
negate (bool = False)
- __init__(a0: QgsExpressionNodeBetweenOperator)
 - Parameters:
 
- evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]¶
 - Parameters:
 parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- 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
Trueif 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:
 parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
 bool