Replies: 1 comment
-
In rule engine, you have to think like:
If |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does this rule engine support WHEN THEN ELSE? i would like to execute something else when "When" condition is not satisfied. I feel if its part of the rule instead of code, it will be better programming.
Please advise.
Tried below but getting syntax error...
rule "example_rule"
when
Customer.Age > 25 && Customer.Age < 60
then
Discount = 20;
Multicar = "Discount";
else
Discount = 10;
Multicar = "No Discount";
end
Beta Was this translation helpful? Give feedback.
All reactions