Class: QgsVbScriptIfStatement¶
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 a VBScript script. |
|
Represents an abstract node for a VBScript script. |
Constructor
Abstract Methods
Methods
Returns the condition expression. |
|
Returns the statement block executed when the condition evaluates to |
|
Returns |
|
Returns the statement block executed when the condition evaluates to |
- class qgis.core.QgsVbScriptIfStatement[source]¶
Bases:
QgsVbScriptStatement- __init__(condition: QgsVbScriptExpression | None, trueBlock: QgsVbScriptBlockStatement | None, falseBlock: QgsVbScriptBlockStatement | None = None, isInline: bool = False)¶
Constructor for QgsVbScriptIfStatement.
Ownership of
condition,trueBlock, andfalseBlockis transferred to this statement.- Parameters:
condition (QgsVbScriptExpression|None)
trueBlock (QgsVbScriptBlockStatement|None)
falseBlock (QgsVbScriptBlockStatement|None = None)
isInline (bool = False)
- abstract clone(self) QgsVbScriptNode | None[source]¶
- Return type:
QgsVbScriptNode|None
- condition(self) QgsVbScriptExpression | None[source]¶
Returns the condition expression.
- Return type:
- falseBlock(self) QgsVbScriptBlockStatement | None[source]¶
Returns the statement block executed when the condition evaluates to
False, orNoneif none.- Return type:
- isInline(self) bool[source]¶
Returns
Trueif this statement was declared as a single-line inline If.- Return type:
bool
- trueBlock(self) QgsVbScriptBlockStatement | None[source]¶
Returns the statement block executed when the condition evaluates to
True.- Return type: