Skip to main content Skip to complementary content

Defining a condition in the WHEN statement

About this task

To define a condition in the WHEN statement, do the following:

Procedure

  1. Click the green + button next to WHEN to open the Add a condition to the rule dialog box.

    Example

  2. Select a class from the list, LoanSimulator in this example, and then click OK.

    Example

  3. Click There is a LoanSimulator to open a dialog box and set a variable name.

    Example

  4. In the Variable name field, enter a variable name, customer in this example, and click Set.
    The variable name is written in the WHEN statement.

    Example

  5. Click There is a LoanSimulator customer to open the Modify constraints dialog box.

    Example

  6. From the Add a restriction on a field list, select age to add an age field to the WHEN statement.

    Example

  7. From the logical operators list, select a logical operator, less than in this example, and then click the pencil icon to open the Field value dialog box.

    Example

  8. Click the New formula button to add a value field next the logical operator, and enter 20 in the field.

    Example

  9. Click the arrow icon next to the value field to add another logical operator list, select or greater than from the list, and set the value to 70.

    Example

What to do next

Then, in the THEN statement, select the action (true or false) you want to take and set the reason for the selected action.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!