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

Mathematical operation #219

Closed
MattiasEppler opened this issue Oct 20, 2021 · 1 comment
Closed

Mathematical operation #219

MattiasEppler opened this issue Oct 20, 2021 · 1 comment

Comments

@MattiasEppler
Copy link

Hi see this in the examples.
render("{% if guest_count < (3+2) and all_tired %}Sleepy...{% else %} ... ", data );

you can do an addition.

But following will throw an exception
render("{% set guest_count = (3+2) %} " , data );
Why?

@pantor
Copy link
Owner

pantor commented Nov 17, 2021

Hi @MattiasEppler, there was an error while lexing numbers without whitespaces in between. The latest commits fix that, and your example above should work fine.

@pantor pantor closed this as completed Nov 17, 2021
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