Solving expressions that have '||' or '&&' operators #2920
m7mdtiger
started this conversation in
Show and tell
Replies: 1 comment 5 replies
-
Thanks for sharing @m7mdtiger. The expression parser of mathjs indeed has logical operators |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have read that you prefer not to add solving expressions that have '||' or '&&' operators to the library. Even though I think that would be pretty useful especially that the conditional operation is already added to the library.
Anyway I had to solve this issue by going around it. And I am sharing it as others might find this helpful..
First I use mathjs.evaluate() function. And if I still have unsolved expressions then I use eval() function from JS like this:
Thank you a lot for your efforts.
Beta Was this translation helpful? Give feedback.
All reactions