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:
- selector
EX
Expression tree corresponding to the selector.
- cases
List
[Tuple
[EX
,EX
]] Pattern/values expression trees.
- default: EX, default:None
Default value.
- selector
- 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.