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

Binary expressions should return the left operand #695

Open
sebastienros opened this issue Aug 30, 2024 · 2 comments
Open

Binary expressions should return the left operand #695

sebastienros opened this issue Aug 30, 2024 · 2 comments
Labels

Comments

@sebastienros
Copy link
Owner

Expectations:

  • {{ 2 == 3 }} returns 2
  • {{ 2 == 3 | plus : 10 | minus : 3 }} returns 9
@Gryhyphen
Copy link

This runs contrary to other languages such as javascript where

const cool = { "colour":  "blue" };
const apples = { "taste": "sweet" };

console.log(cool && apples);

returns

{taste: 'sweet'}

Tho if this is part of the liquid standard that's fine. Just thought I should mention it.

@sebastienros
Copy link
Owner Author

Tho if this is part of the liquid standard that's fine. Just thought I should mention it.

It is part of the liquid standard ;) Was a shock to me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants