rulepilot icon indicating copy to clipboard operation
rulepilot copied to clipboard

expected to not require 'all, any, none' for condition?

Open z1haze opened this issue 9 months ago • 0 comments

Hi, awesome library btw!

I wanted to ask if it was intentional that you readme shows using conditions without they all/any/none keyword. I'm scanning the code and I see that it will return false in any event that one is not present, although the docs show this as an example:

const rule: Rule = {
  conditions: [
    {
      field: "profile.age",
      operator: ">=",
      value: 18,
    },
  ],
};

z1haze avatar May 07 '24 02:05 z1haze