Define a Case Expression

A Case Expression is an Expression that works as a group of if-then-else Expressions that are applied together against one Field (example: If the Incident Priority equals 1, then apply the Alert - High color to the Priority alert bar).

To define a Case Expression:

  1. Create an Expression.
  2. In the Editor drop-down list, select Case.

    The Case Expression section opens.

  3. In the If condition is true section, select a type of If statement (Simple, Advanced, or Named Expression), and then define its properties:
    1. Simple: Define an Expression (example: Incident.Priority equals 1):
      1. Select a value from the Token Selector in the far left Value drop-down list (example: Incident.Priority).
      2. Select an operator from the Operator drop-down list (example: Equals).
      3. Select a value from the Token Selector in the far right Value drop-down list (example: 1).

        The If statement displays in the Cases pane.

        The If statement ends with the term empty because the Then statement has not been defined.
    2. Advanced: Select Edit to open the Custom Expression window, and then define a Custom Expression.
    3. Named Expression: Select the ellipses button Ellipses Button to access the Expression Manager, and then select a stored Expression or create a new Expression.
  4. In the Then assign this value section, define the Then value (example: Alert - High):
    1. Value: Select a value from the Token Selector.
    2. Value is a color: Define a color value.
      1. Select the Value is a color check box.
      2. Select Color SelectorColor Picker Button to open the Color Selector, and then select an existing color or create a new color.

        The Then value displays in the Cases pane.

  5. (Optional) Add related Expressions to the Cases pane (example: If the Priority equals 2, then apply the Alert - Medium color to the Priority alert bar).
  6. Define a default value:
    The Expression displays this value if none of the defined cases are true.
    1. Select the Default: empty row in the Cases pane.

      The Then assign this value section opens.

    2. Value: Select a value from the Token Selector.
    3. Value is a color: Define a color value.
      1. Select the Value is a color check box.
      2. Select Color SelectorColor Picker Button to open the Color Selector, and then select an existing color or create a new color.

        The default Then value displays in the Cases pane.

  7. Select Save.