Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule expressions are case insensitive #437

Open
SubhasmitaPatro opened this issue Dec 5, 2022 · 2 comments
Open

Rule expressions are case insensitive #437

SubhasmitaPatro opened this issue Dec 5, 2022 · 2 comments

Comments

@SubhasmitaPatro
Copy link

How to achieve case sensitive string comparison in rule expression.
Example, object1.Name == "SAM" and object1.Name == "sam" should be treated differently for my scenario.
Appreciate any suggestions.

@abbasc52
Copy link
Contributor

abbasc52 commented Dec 7, 2022

Can you share the version of RulesEngine you are using ?

Also string.Equals(object1.Name,"SAM") should be case sensitive. Let me know if this works.

@SubhasmitaPatro
Copy link
Author

Thanks for your response. I use RulesEngine 4.0.0. I tried with the way you suggested. This also behaves as case insensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants