Class: QgsExpressionNodeBetweenOperator¶
- class qgis.core.QgsExpressionNodeBetweenOperator¶
Bases:
QgsExpressionNode
SQL-like BETWEEN and NOT BETWEEN predicates.
New in version 3.26.
QgsExpressionNodeBetweenOperator(node:
QgsExpressionNode
, nodeLowerBound:QgsExpressionNode
, nodeHigherBound:QgsExpressionNode
, negate: bool = False) This node tests if the result ofnode
is between the result ofnodeLowerBound
andnodeHigherBound
nodes. Optionally it can be inverted withnegate
which by default isFalse
.QgsExpressionNodeBetweenOperator(
QgsExpressionNodeBetweenOperator
)Methods
- rtype
QgsExpressionNode
- rtype
str
- param parent
Returns the higher bound expression node of the range.
- param parent
Returns the lower bound expression node of the range.
Returns
True
if the predicate is an exclusion test (NOT BETWEEN).Returns the expression node.
- rtype
QgsExpressionNode.NodeType
- param parent
- rtype
Set[str]
- rtype
Set[str]
- rtype
Set[str]
- clone(self) QgsExpressionNode ¶
- Return type
- dump(self) str ¶
- Return type
str
- evalNode(self, parent: QgsExpression, context: QgsExpressionContext) Any ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type
Any
- higherBound(self) QgsExpressionNode ¶
Returns the higher bound expression node of the range.
- Return type
- isStatic(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type
bool
- lowerBound(self) QgsExpressionNode ¶
Returns the lower bound expression node of the range.
- Return type
- negate(self) bool ¶
Returns
True
if the predicate is an exclusion test (NOT BETWEEN).- Return type
bool
- node(self) QgsExpressionNode ¶
Returns the expression node.
- Return type
- nodeType(self) QgsExpressionNode.NodeType ¶
- Return type
- prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type
bool
- referencedColumns(self) Set[str] ¶
- Return type
Set[str]
- referencedFunctions(self) Set[str] ¶
- Return type
Set[str]
- referencedVariables(self) Set[str] ¶
- Return type
Set[str]