home › Forums › # Technical Support › Error Operand "OR" (Java) › Reply To: Error Operand "OR" (Java)
Juan, good night. Those using OR, if i comment, it works. The first one is not working. And it works on the program.This code has been export from QtFuzzyLite 5…it hasnĀ“t been made manually. All those rules using OR get the same problem. If i put two simple rules instead the one using or it works.
For example:
ruleBlock.addRule(Rule.parse(“if C2H2_C2H4 is A and CH4_H2 is B and C2H4_C2H6 is A or C2H4_C2H6 is B) then DIAGNOSTICO is D1”, engine));
ruleBlock.addRule(Rule.parse(“if C2H2_C2H4 is A and CH4_H2 is B and C2H4_C2H6 is A then DIAGNOSTICO is D1”, engine));
ruleBlock.addRule(Rule.parse(“if C2H2_C2H4 is A and CH4_H2 is B and C2H4_C2H6 is B then DIAGNOSTICO is D1”, engine));
Thanks Juan.