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, 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 left-most Value drop-down (example: Incident.Priority).
 - Select an operator from the Operator drop-down (example: Equals).
 - Select a value from the Token
                Selector in the right-most Value drop-down (example: 1). 
                
The If statement displays in the Cases pane.
Note: The If statement ends with the term empty because the Then statement has not been defined. 
 - Advanced: Click the Edit button to to open the Custom Expression window, and then define a Custom Expression.
 - Named Expression: Click 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.
 - Click the 
                Color Selector 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.
 
 
 - (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: 
        Note: The Expression will display this value if none of the defined cases are true.
- Click 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.
 - Click the 
                Color Selector 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.
 
 
 - Click the 
            Default: empty row in the Cases pane. 
            
 -  
        
Click OK.
 
