fluid
fluid copied to clipboard
Binary expressions should return the left operand
Expectations:
{{ 2 == 3 }}returns2{{ 2 == 3 | plus : 10 | minus : 3 }}returns9
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.
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