Class: QgsEsriArcadeForStatement

Represents a standard counter-based for loop.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsEsriArcadeForStatement

Base classes

QgsEsriArcadeStatement

Base class for statement nodes in an Esri Arcade script.

QgsEsriArcadeNode

Represents an abstract node for an Esri Arcade script.

Constructor

__init__

Abstract Methods

clone

Methods

body

Returns the loop body block statement.

condition

Returns the loop condition expression, or None if none.

initialization

Returns the initialization statement, or None if none.

step

Returns the step expression or statement, or None if none.

class qgis.core.QgsEsriArcadeForStatement[source]

Bases: QgsEsriArcadeStatement

__init__(initialization: QgsEsriArcadeStatement | None, condition: QgsEsriArcadeExpression | None, step: QgsEsriArcadeNode | None, body: QgsEsriArcadeBlockStatement | None)

Constructor for QgsEsriArcadeForStatement.

Ownership of initialization, condition, step, and body is transferred to this statement.

Parameters:
body(self) → QgsEsriArcadeBlockStatement | None[source]

Returns the loop body block statement.

Return type:

QgsEsriArcadeBlockStatement|None

abstract clone(self) → QgsEsriArcadeNode | None[source]
Return type:

QgsEsriArcadeNode|None

condition(self) → QgsEsriArcadeExpression | None[source]

Returns the loop condition expression, or None if none.

Return type:

QgsEsriArcadeExpression|None

initialization(self) → QgsEsriArcadeStatement | None[source]

Returns the initialization statement, or None if none.

Return type:

QgsEsriArcadeStatement|None

step(self) → QgsEsriArcadeNode | None[source]

Returns the step expression or statement, or None if none.

Return type:

QgsEsriArcadeNode|None