[rules-users] And Or Problem

saurabh maheshwari maheshwari.saurabh03 at gmail.com
Thu Apr 21 06:00:55 EDT 2011


Hi sir ,

I am facing one issue regarding  and( , )  and OR( || ) condition

i have one rule like that

dialect "java"
rule "mytest1"
when
test ( ( i==1,j==2) || (i == 2 ,j==3) )
then
System.out.println("Found");
end

it gives excpetion [ERR 102] Line 24:22 mismatched input ',' expecting
'then' in rule "mytest1"

 can we not do such type of combination ?




dialect "java"
rule "mytest1"
when
test (( i==1 || j==2) ,(i == 2 || j==3))
then
System.out.println("Found");
end

this gives no excpetion and works as expected .





Regards ,

Saurabh Maheshwari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110421/24f9ab70/attachment.html 


More information about the rules-users mailing list