ansys.scade.apitools.create.expression.create_case#

ansys.scade.apitools.create.expression.create_case(selector: EX, cases: List[Tuple[EX, EX]], default: EX = None) ET#

Return the expression tree for the case operator.

Parameters:
selectorEX

Expression tree corresponding to the selector.

casesList[Tuple[EX, EX]]

Pattern/values expression trees.

default: EX, default:None

Default value.

Returns:
ET

Notes

This is an interface change with respect to the SCADE Creation Library. The pairs “pattern”/”value” are now embedded in a list of tuples, and the default value is optional.