Question: "Switch" command or equivalent

When using Latex for MapleTA questions, one can use the command switch in order to change the name of the variable. The question now is: How to use this command or a different one to change a function to another one? For example, if one wants to ask the value of \sin($z(x)) where z is not always the same function, say z=Switch(rint(2), \arcsin(x), \arcos(x)), how can we make this work? An answer would be extremely helpful!!
Please Wait...