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

&& in a conditional doesn't work #4

Closed
allenu opened this issue Feb 24, 2018 · 1 comment
Closed

&& in a conditional doesn't work #4

allenu opened this issue Feb 24, 2018 · 1 comment

Comments

@allenu
Copy link

allenu commented Feb 24, 2018

If I use logical AND in an if statement, it isn't treated as a conditional, but instead gets turned into tags.

You can try this out by first doing

if true
    p Hello

And it compiles to

<p>Hello</p>

However if you change it to

if true && true
    p Hello

It compiles to

<if>true && true<p>Hello</p></if>
@eknkc eknkc closed this as completed in c2513ac Feb 24, 2018
@allenu
Copy link
Author

allenu commented Feb 24, 2018

Thank you! It works for me now.

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