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)

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]