2 Replies Latest reply: May 15, 2014 10:13 AM by MonUserCJ _ RSS

    Does Monarch have a function for switch functionality?

    MonUserCJ _

      Hey all,

       

      I am trying to move more of the client-specific logic of my procedures from the utility I maintain/program into Monarch. One thing that I'm sure will come up time and again is the need for a switch or case statement. For example, let's say there are 3 suppliers of bubble gum. In the data I'm parsing, they are referenced using IDs (let's say 1-3). However, I want to output the name of the company to a text field.

       

      Of course, I could implement this using nested if statements, but as the number of cases increase it becomes more tedious to implement and maintain that. Does Monarch have some sort of way of specifying a switch in a calculated field, or is there another feature that I can use to do this? I would appreciate any advice anyone can give. Thanks.