API reference

python:astx:astx.flows.IfStmt

class IfStmt

IfStmt(condition: Expr, then: Block, else_: Optional[Block] = None, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)

Source: packages/astx/src/astx/flows.py:26

AST class for if statement.

Attributes

Methods

Attributes

Search documentation

Type to search.