Define a Logical Expression

A Logical Expression is an Expression that uses one or more conditions (example: Incident.Status does not equal Closed) to return a true or false value.

To define a Logical Expression:

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

    The Logical Expression section opens.

  3. Define the Expression condition:
    1. Select a value from the Token Selector in the left-most Value drop-down (example: Incident.Status).
    2. Select an operator from the Operator drop-down (example: Not Equal).
    3. Select a value from the Token Selector in the right-most Value drop-down (example: Closed).
      Note: If the Field is validated, the Legal Values button displays to the right of the drop-down. It allows you to choose from a list of appropriate values.
  4. (Optional) Add additional related Expressions:
    Note: When additional Expressions are added to the Logical Expression, all conditions in the group must be true for the Expression to return a True value.
    1. Click the Advanced button.

      The Advanced section opens and displays the defined Expression.

    2. Define a Group Expression:
      1. Click the New button Create New Button with Arrow, and then select Group Expression in the drop-down.

        The Grouping section opens.

      2. Select a Grouping condition:
        • All of the items in the group must be true.
        • At least one of the items in the group must be true.

        The Grouping condition displays in the Advanced section.

  5. (Optional) Define an Expression that meets the Group Expression condition:
    1. Select a value from the Token Selector in the left-most Value drop-down (example: Incident.Status).
    2. Select an operator from the Operator drop-down (example: Not Equal).
    3. Select a value from the Token Selector in the right-most Value drop-down (example: Resolved).
      Note: If the Field is validated, the Legal Values button Legal Values Button displays to the right of the drop-down. It allows you to choose from a list of appropriate values.
  6. (Optional) Add additional Logical and Group Expression conditions.
  7. Click OK.

© Copyright 2018 Cherwell Software, LLC. All rights reserved.