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 of node is between the result of nodeLowerBound and nodeHigherBound nodes. Optionally it can be inverted with negate which by default is False.

QgsExpressionNodeBetweenOperator(QgsExpressionNodeBetweenOperator)

Methods

clone

rtype

QgsExpressionNode

dump

rtype

str

evalNode

param parent

higherBound

Returns the higher bound expression node of the range.

isStatic

param parent

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.

nodeType

rtype

QgsExpressionNode.NodeType

prepareNode

param parent

referencedColumns

rtype

Set[str]

referencedFunctions

rtype

Set[str]

referencedVariables

rtype

Set[str]

clone(self) QgsExpressionNode
Return type

QgsExpressionNode

dump(self) str
Return type

str

evalNode(self, parent: QgsExpression, context: QgsExpressionContext) Any
Parameters
Return type

Any

higherBound(self) QgsExpressionNode

Returns the higher bound expression node of the range.

Return type

QgsExpressionNode

isStatic(self, parent: QgsExpression, context: QgsExpressionContext) bool
Parameters
Return type

bool

lowerBound(self) QgsExpressionNode

Returns the lower bound expression node of the range.

Return type

QgsExpressionNode

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

QgsExpressionNode

nodeType(self) QgsExpressionNode.NodeType
Return type

QgsExpressionNode.NodeType

prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) bool
Parameters
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]