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

Possible to define my own operators #84

Closed
MayamaTakeshi opened this issue Mar 28, 2021 · 1 comment
Closed

Possible to define my own operators #84

MayamaTakeshi opened this issue Mar 28, 2021 · 1 comment

Comments

@MayamaTakeshi
Copy link

Hi,
I'm trying to use simpleeval to evaluate expressions as XML attributes.
Since XML syntax uses "<" and ">" I cannot do this:

  <Tag expr="3 > 1"/>

So I am trying to use something like this:

  <Tag expr="3 GT 1"/>

Can this be done?

@MayamaTakeshi
Copy link
Author

Ah, I saw #26 and from there I found the CustomOperators.py demo. Sorry for the noise.

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

1 participant