You can use a case statement to handle multiple expressions. Standard ML does not have a default case, so we use NONE as an illustrative example.
A similar construct to the if/else logic can be achieved using a case statement. Non-constant expressions can be used within the case branches.
Standard ML does not support type switching directly. We typically use pattern matching to handle types. Here for illustration, we use a simple case to mimic type handling.