removed ifThenElse() and added choose() which allows arbitrary number of branches to select from. Basically a switch statement.