IfThenElseOp#

class IfThenElseOp(expression)#

Bases: CallExpression

Provides a vector from a flow and a size.

The format is if <if> then <then>, ..., <then> else <else>, ..., <else>.

See the if_then_else_op example.

Parameters:
expression

Call expression to wrap.

Notes

The design differs slightly from the meta-model. Because the then/else parts must be groups of flows, the IfThenElseOp class exposes directly the list of then/else flows instead of a flow that is an instance of the ListExpression class.

Overview#

else_

Flows when the condition is false.

if_

Condition of the expression.

then

Flows when the condition is true.

Import detail#

from ansys.scade.apitools.expr.access import IfThenElseOp

Property detail#

property else_: list[Expression]#

Flows when the condition is false.

property if_: Expression#

Condition of the expression.

property then: list[Expression]#

Flows when the condition is true.