create_if_tree(expression, then, else_, position=None, label_width=0)#

Create a decision in the intermediate structure if it is a tree structure.

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

They are considered if and only if the owning if block has a graphical representation.

Hint for the graphical properties: The size of a node is 80x80. Consider this offset to have consistent values between if nodes and actions.

Parameters:
expressionEX

Extended expression tree defining the condition of the decision.

thenIT

Sub-decision tree to consider when the condition is True.

else_IT

Sub-decision tree to consider when the condition is False.

positionTuple[float, float], default: None

Position of the decision.

label_widthint, default: 0

Size of the label.

Returns:
IT