:class:`IfThenElseOp` ===================== .. py:class:: ansys.scade.apitools.expr.access.IfThenElseOp(expression: scade.model.suite.ExprCall) Bases: :py:obj:`CallExpression` Provides a vector from a flow and a size. The format is ``if then , ..., else , ..., ``. See the :ref:`if_then_else_op ` example. Notes ----- The design differs slightly from the meta-model. Because the then/else parts must be groups of flows, the :class:`~IfThenElseOp` class exposes directly the list of then/else flows instead of a flow that is an instance of the :class:`~ListExpression` class. Parameters ---------- expression : Call expression to wrap. Initialize the instance from the Scade expression. .. !! processed by numpydoc !! .. py:currentmodule:: IfThenElseOp Overview -------- .. tab-set:: .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~else_` - Flows when the condition is false. * - :py:attr:`~if_` - Condition of the expression. * - :py:attr:`~then` - Flows when the condition is true. Import detail ------------- .. code-block:: python from ansys.scade.apitools.expr.access import IfThenElseOp Property detail --------------- .. py:property:: else_ :type: list[Expression] Flows when the condition is false. .. !! processed by numpydoc !! .. py:property:: if_ :type: Expression Condition of the expression. .. !! processed by numpydoc !! .. py:property:: then :type: list[Expression] Flows when the condition is true. .. !! processed by numpydoc !!