You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do more complex logic in the .rul file and I don't see any documentation explaining OR-statements and I've tried a few things by trial-and-error and none are working. Could you write out a simple example that uses an OR-statement in the .RUL file, please?
The text was updated successfully, but these errors were encountered:
Hi, I'm May, a beginner in NRule.
I have a similar question.
I was wondering if I want to implement the statement like this:
var optionList = new List<string> {"aa","bb","cc","dd","ee"};
//if customer's code is in optionList.
if (optionList.Contains(customer.code))
{
//do something;
}
How should I do?
Sorry about that I don't see any documentation explaining it.
I'm trying to do something, but it doesn't work.
rule "Test_Rule"
when
var optionList = new List<string> {"aa","bb","cc","dd","ee"};
var customer = Customer(x =>optionList.Contains(x.code));
then
DoSomething();
I'm trying to do more complex logic in the .rul file and I don't see any documentation explaining OR-statements and I've tried a few things by trial-and-error and none are working. Could you write out a simple example that uses an OR-statement in the .RUL file, please?
The text was updated successfully, but these errors were encountered: