Class: QgsEsriArcadeIfStatement¶
Represents an if statement.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for statement nodes in an Esri Arcade script. |
|
Represents an abstract node for an Esri Arcade script. |
Constructor
Abstract Methods
Methods
Returns the condition expression. |
|
Returns the statement block executed when the condition evaluates to |
|
Returns the statement block executed when the condition evaluates to |
- class qgis.core.QgsEsriArcadeIfStatement[source]¶
Bases:
QgsEsriArcadeStatement- __init__(condition: QgsEsriArcadeExpression | None, trueBlock: QgsEsriArcadeBlockStatement | None, falseBlock: QgsEsriArcadeBlockStatement | None = None)¶
Constructor for QgsEsriArcadeIfStatement.
Ownership of
condition,trueBlock, andfalseBlockis transferred to this statement.- Parameters:
condition (QgsEsriArcadeExpression|None)
trueBlock (QgsEsriArcadeBlockStatement|None)
falseBlock (QgsEsriArcadeBlockStatement|None = None)
- abstract clone(self) QgsEsriArcadeNode | None[source]¶
- Return type:
QgsEsriArcadeNode|None
- condition(self) QgsEsriArcadeExpression | None[source]¶
Returns the condition expression.
- Return type:
- falseBlock(self) QgsEsriArcadeBlockStatement | None[source]¶
Returns the statement block executed when the condition evaluates to
False, orNoneif none.- Return type:
- trueBlock(self) QgsEsriArcadeBlockStatement | None[source]¶
Returns the statement block executed when the condition evaluates to
True.- Return type: