[rules-users] Question on "or" rule syntax

Brett M. Bergquist brett at thebergquistfamily.com
Tue May 13 14:39:07 EDT 2008


If I use this syntax for an "or" with binding:

pensioner : (or Person( sex == "f", age > 60 ) 
                Person( sex == "m", age > 65 ) )

I get a compile error.  Is this syntax supported?

I can successfully use this syntax:

(or pensioner : Person( sex == "f", age > 60 ) 
    pensioner : Person( sex == "m", age > 65 ) )

which works okay but I was wondering if the documentation or implementation is incorrect.







More information about the rules-users mailing list