Just out of curiosity: why is it a bad idea to use || in conditions?

Paul Smith wrote:
I've used it in a few conditions along with &&.Given these comments
though I'll rework them into separate conditions.

On 2/27/06, Mark Proctor <[EMAIL PROTECTED]> wrote:
  
Anagha,

Its not a good idea to use || in conditions - instead  write out two
rules for the different outcomes. However I thought that || had been
made  allowed in conditions, for those that insist on using  it - has
anyone else been able to use || in conditions? If || has not been yet
made available i'm afraid you will have to wait till 3.0.

Mark
Anagha wrote:
    
Hi All,
I'm using drools-2.1 with java semantics.
I want to combine multiple condtions in a single condition with OR.
i.e. if * (hello.equals("Hi") || hello.equals("Hey")
But it seems "java.xsd" does not allow such type of constructs in the
"condition".
Any ideas?

Any help is welcome.

--
Thanks & Regards,
Anagha


      
    

  

Reply via email to