[rules-users] MultiValueRestriction

droolster quant.coder at gmail.com
Wed Jun 19 04:51:52 EDT 2013


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:

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.


More information about the rules-users mailing list