On 19/06/2013, droolster <quant.coder(a)gmail.com> wrote:
Hello,
I saw the following in the "Design Patterns for PRS system" pdf and could
not understand the difference between the two statements (they look the
same
to me). Please can the community clarify what the difference is:
Just count the keystrokes :-) Probably easier to read, too.
-W
A multiple choice could be written using the same syntactic form, e.g.,
Type( strField == "Huey" || == "Dewey" || == "Louie" )
but if you are testing for equality, the MultiValueRestriction is to be
preferred, so that the preceding
pattern is better written as
Type( strField in ( "Huey", "Dewey", "Louie" ) )
Thank you,
Iftikhar
--
View this message in context:
http://drools.46999.n3.nabble.com/MultiValueRestriction-tp4024384.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users