Boolean condition versus values set
- Last Updated: December 28, 2020
- 1 minute read
- Corticon.js
- Documentation
The illustrations in the topic Filters versus conditions that show Rulesheet Using a Conditional Rule and Rulesheet Using a Conditional Rule show simple Boolean conditions
that evaluate to either True or False. The action related to this condition is either selected or not, on or
off, meaning the value of maxCargoWeight is either assigned
the value of 200,000 or it is not. (Action statements are
activated by selecting the check box that automatically appears when the cell is clicked.)
However, there is another way to express both Conditions and Actions using Values sets.
By using different values in the column cells of Condition and Action rows in this Rulesheet, you can write multiple rules (represented as different columns in the table) for different condition-action combinations. Expressing these same rules using Boolean expressions would require many more condition and action rows, and would fail to take advantage of the semantic pattern that these three rules share.