Subgroup: Expression

Class: QgsExpressionNodeCondition

class qgis.core.QgsExpressionNodeCondition(conditions: object, elseExp: QgsExpressionNode = None)

Bases: qgis._core.QgsExpressionNode

Create a new node with the given list of conditions and an optional elseExp expression.

QgsExpressionNodeCondition(QgsExpressionNodeCondition)

Methods

clone
dump
eval Evaluate this node with the given context and parent.
evalNode
isStatic
needsGeometry
nodeType
prepare Prepare this node for evaluation.
prepareNode
referencedColumns
referencedVariables

Attributes

ntBinaryOperator
ntColumnRef
ntCondition
ntFunction
ntInOperator
ntLiteral
ntUnaryOperator
class WhenThen(whenExp: QgsExpressionNode, thenExp: QgsExpressionNode)

Bases: sip.wrapper

A combination of when and then. Simple as that.

clone(self) → QgsExpressionNodeCondition.WhenThen

Get a deep copy of this WhenThen combination.

clone(self) → QgsExpressionNode
dump(self) → str
evalNode(self, parent: QgsExpression, context: QgsExpressionContext) → Any
isStatic(self, parent: QgsExpression, context: QgsExpressionContext) → bool
needsGeometry(self) → bool
nodeType(self) → QgsExpressionNode.NodeType
prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) → bool
referencedColumns(self) → Set[str]
referencedVariables(self) → Set[str]