create_when_branch(pattern, position=None, size=None, display=DK.GRAPHICAL, label_width=0)#

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:
patternEX

Value of the branch.

positionTuple[float, float], default: None

Position of the action.

sizeTuple[float, float], default: None

Size of the action.

displayDK, default: GRAPHICAL

Layout of the action.

label_widthint

Optional width of the label containing the pattern.

Returns:
WhenBranch