This was cut'n'pasted from the documentation, so the documentation needs
fixing. I'll open a Jira issue on it.
Thanks.
Edson Tirelli wrote:
The single binding for multiple OR'ed patterns is a special case
and it only supports infix OR:
pensioner : (Person( sex == "f", age > 60 ) or Person( sex ==
"m",
age > 65 ) )
If the documentation is different, it requires fixing.
[]s
Edson
2008/5/13 Brett M. Bergquist <brett(a)thebergquistfamily.com
<mailto:brett@thebergquistfamily.com>>:
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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com <
http://www.jboss.com>
------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users