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

support of null in conditions like {% if previousTime != null %} #36

Open
dmitrya1979 opened this issue Nov 9, 2016 · 3 comments
Open

Comments

@dmitrya1979
Copy link

Great library. It looks like null is not supported http://jsfiddle.net/zq3ez61h/ Can it be extended to support nulls?

@Nexxtron
Copy link

Nexxtron commented Nov 9, 2016

Hello,
got the same problem with (both "row" and "index" are defined!):
{% if row[index] != undefined) %}
in the compiled output the undefined/null gets recognized as variable:
this.__cache__.index !== undefined && this.__cache__.row !== undefined && this.__cache__.undefined !== undefined

@antonmedv
Copy link
Owner

Currently undefined ignored on update in Monkberry. I'll add support for them in next Monkberry v5.

@d9onis
Copy link

d9onis commented Jan 27, 2017

+1

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

4 participants