Switch

Use the Switch action to select the actions to execute for a specific case value. If a case value is not matched, the "default" case is executed.

Here's an example of a Switch code block that returns a language's three letter code:

      switch (language) {
        case 'English':
          return 'eng';
          break;
        case 'Chinese':
          return 'chn';
          break;
        case 'Spanish':
          return 'spn';
          break;
        default:
          return 'error';
          break;
      }