ansys.scade.apitools.create.data_def.create_when_branch ======================================================= .. py:function:: ansys.scade.apitools.create.data_def.create_when_branch(pattern: ansys.scade.apitools.create.expression.EX, position: Tuple[float, float] = None, size: Tuple[float, float] = None, display: DK = DK.GRAPHICAL, label_width: int = 0) -> WhenBranch Create an intermediate structure for a when branch. The graphical properties are expressed 1/100th of mm. They are considered if and only if the owning when block has a graphical representation. :Parameters: **pattern** : :obj:`EX` Value of the branch. **position** : :obj:`Tuple`\[:class:`python:float`, :class:`python:float`], default: :data:`python:None` Position of the action. **size** : :obj:`Tuple`\[:class:`python:float`, :class:`python:float`], default: :data:`python:None` Size of the action. **display** : :obj:`DK`, default: :obj:`GRAPHICAL` Layout of the action. **label_width** : :class:`python:int` Optional width of the label containing the pattern. :Returns: :obj:`WhenBranch` .. .. !! processed by numpydoc !!