Conditions that test if an object belongs to a set
You can use conditions to test whether an object belongs to a defined category.
The following condition tests whether a customer is in the Silver, Gold, or Platinum category:
if
the category of 'the customer' is one of {Silver, Gold, Platinum}
The following condition tests whether the rule variable luxury car groups contains the car group that is specified in the current rental agreement. The rule first defines the variable luxury car groups as the set of all car groups with a daily rate above a certain value:
definitions set 'luxury car groups' to all car groups where the daily rate of each car group is at least 50; if 'luxury car groups' contain the car group of 'the current rental agreement' then ...