add_data_def_if_block(data_def, name, if_tree, diagram, position=None, size=None)#

Create an if block in a scope.

The graphical properties are expressed 1/100th of mm.

They are considered if and only if diagram is a graphical diagram.

Parameters:
data_defsuite.DataDef

Input scope, which is an operator, state, or action.

namestr

Name of the if block.

if_treeIfTree

Intermediate tree to describe the structure of the if block.

diagramsuite.Diagram

Diagram containing the equation. The diagram specified can be either graphical or textual, or it can be None. However, it cannot be None if the scope contains at least one diagram.

positionTuple[float, float], default: None

Position of the if block.

sizeTuple[float, float], default: None

Size of the if block.

Returns:
suite.IfBlock