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:
- Create an Expression.
- In the Editor drop-down list, select
Case.
The Case Expression section opens.
- In the If condition is true
section, select a type of
If statement
(Simple, Advanced, or Named Expression), and then define
its properties:
- Simple: Define an Expression (example:
Incident.Priority equals 1):
- Select a value from the Token Selector in the far left Value drop-down list (example: Incident.Priority).
- Select an operator from the Operator drop-down list (example: Equals).
- 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.
- Advanced: Select Edit to open the Custom Expression window, and then define a Custom Expression.
- Named Expression: Select the ellipses button to access the Expression Manager, and then select a stored Expression or create a new Expression.
- Simple: Define an Expression (example:
Incident.Priority equals 1):
- In the
Then assign this value section, define the
Then value
(example: Alert - High):
- Value: Select a value from the Token Selector.
- Value is a color: Define a color value.
- Select the Value is a color check box.
- Select
Color Selector to open the Color Selector, and then select an
existing color or create a new color.
The Then value displays in the Cases pane.
- (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).
- Define a default value:
The Expression displays this value if none of the defined cases are true.
- Select the
Default: empty row in the
Cases pane.
The Then assign this value section opens.
- Value: Select a value from the Token Selector.
- Value is a color: Define a color value.
- Select the Value is a color check box.
- Select
Color Selector 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.
- Select the
Default: empty row in the
Cases pane.
-
Select Save.