Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
This is in relation to the product idea: Switch Statement in Mathcad Prime, that for some reason I cannot vote for (nor against), possibly because I have no active maintenance contract with PTC...
The switch statement is not needed. Here's an example of the same functionality (in Mathcad 11, bet it works also and likewise in Mathcad 15 and Prime):
Note that Mathcad (Prime alike) normally works with reals, possibly complex, or even vectors and matrices, rarely with integers.
The only occasions where integers are required are in indexing vectors and matrices. It doesn't even require integers with the summation operator:
So instead of the switch statement, formulate your problem using an array.
Luc