[rules-users] Else condition in drl file

learner anandbabu6545 at yahoo.com
Wed Jun 13 06:36:09 EDT 2012


Hi,

I have a scenario like

if(value == 200){
  // then do something
}else if(value == 100){
// then do something
}else{
value = 0
}

I created drl with 3 rules
Rule 1 : value  equal 200
Rule 2 : value  equal 100
Rule 3 : value not equal to 100 or 200(ie by value!=200 & value!=100 ).

Is there a way by which I can simplify the condition in rule 3.

--
View this message in context: http://drools.46999.n3.nabble.com/Else-condition-in-drl-file-tp4017903.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list