AST Python ObjectsIf ConditionOn this pageIf Condition AST Python ObjectThe IfCondition object matches a Python function, module or object call.The astType value for this node is ifstatement.Code PatternThis AST element captures the following code.if condition: ... <statements> ...elif ...: ...else: ... <elseStatement> ...Attributescondition (type PythonComparison): comparison in the ifstatements (type AstString): the statement for the if partelifStatements (array of PythonElifStatement): all elif statementselseStatement (type AstString): the code of the else statements