Modern Logic supports more complex rule types, that let you use multiple fields. When creating a New Rule from within a Ruleset, you can choose options beyond the simpler If/Then rules that you'll see in your demo Workflows.

Matrix Rules

These rules let you look at two fields, and take action based on their intersections. As an example, picture a workflow where you have both income and credit score as an input about your customers, and you want to assign them a risk score.

You would select New Rule > Matrix Rule and then begin by typing customer.fico in the top cell that determines what you'll look at for your columns. You can then put your conditions in the cells below. Next you would type customer.income in the row header, and fill out the conditions for each row. Finally you can put actions in the intersection cells.

When you're done, you should have a table like the example below:

Screen Shot 2021-12-09 at 1.52.46 PM.png

Decision Tables

Decision tables are another way of looking at multiple different conditions for a variable. And can also be used with multiple variables as well. Click New Rule > Decision Table from within a Ruleset to create a new one.

Each column in your decision table looks at a single field, with conditions in each row. When all the conditions for a row are met, the action in the far right column is taken. For example, consider a simple table that uses fico scores to set an internal risk score.

Screen Shot 2021-12-09 at 1.58.57 PM.png

Range Columns like the one above will check if a number falls between a range. Case Columns will check if a field matches the condition exactly. You can mix and match Column types in a single Decision Table Rule. For example, consider a table that looks at model of the customers car and their income.

Screen Shot 2021-12-09 at 2.03.02 PM.png

Note that when comparing strings you'll need to wrap them in single quotation marks