Rule Composer
Or
Or
is a rule composer that combines the results of two rules. If either rule is satisfied, the Or
rule is satisfied.
Overview
To create a rule that is satisfied when either a specific rule or another rule is met, you can use the Or
Rule Composer.
This composer allows you to combine multiple rules in a way that the overall condition is fulfilled when at least one of the individual rules within the composition is satisfied.
Example
For example, let’s consider a case where we allow integers that are less than 10 or greater than 50.
In this example, the Target
type is defined as a refined type that only accepts integers that are less than 10 or greater than 50.
Let’s see how this rule works in practice.