Manage rules in a decision table
When you add a rule to a decision table, you add inputs and outputs. The input you enter is the true or false condition that must be met in order for the output to be returned. The input type you can enter depends on the type you selected when you configured the input column. For example, if you selected the guest data option when configuring the input column, a list of inputs to select from displays within the Input field.
Before you can add rules to a decision table, you must create the decision table and configure the input and output columns.
To add rules to the decision table:
-
On the Decision Table tab, click the Add Rule link.
-
In the new row that displays in the Input column, you can configure the input using these options:
-
Use a default operator - click the Input column, select an operator, and enter one or more input values.
-
Match one of - compares the input to a list of specified values and returns a match if any value in the list matches. For example, validate guest emails by entering approved addresses like [email protected], [email protected].
-
Match anything except - ensures the input does not match any value from a specified list. For example, exclude email addresses like [email protected], [email protected].
-
Match if contains - verifies that the input partially matches all specified substrings. For example, match all guest emails that include both gmail.com and john, such as [email protected].
-
Match if does not contain - confirms that the input does not contain all specified substrings. For example, exclude all emails that include gmail.com and john.
-
-
Enter input value manually - double-click the Input column to enter or edit a value. You can manually input a specific value, a logical expression, or use conditional operators, such as
&&and||, as needed.
-
-
Click the Output column of the new row.
-
In the dialog that displays, enter an output. The output type you can enter depends on how you configured the output column.
If you connected an offer knowledge source to the decision table, a prepopulated list of offers displays for selection.
-
Press Enter. The output you entered displays in the row of the Output column.
-
Click Save. You can continue adding rows, as required.