You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently logical operators (like and, or) in the helpers are based on Javascript if operator.
Please consider implementing logical operators bases of the way of Handlebars if operator functions.
So that {{#if (and a b)}} smth {{/if}} would act 100% as {{#if a}}{{#if b}} smth {{/if}}{{/if}}
Currently there are cases (for example empty array) where these two constructions differ and it may result unexpected behaviour in constructions like:
{{# if (or a b)}}
Found:
{{#if a}}Element a{{/if}}
{{#if b}}Element b{{/if}}
{{/if}}
Thank you.
The text was updated successfully, but these errors were encountered:
PRR24
changed the title
Logical operattor consistency
Logical operator consistency
Nov 9, 2020
Currently logical operators (like and, or) in the helpers are based on Javascript if operator.
Please consider implementing logical operators bases of the way of Handlebars if operator functions.
So that
{{#if (and a b)}} smth {{/if}}
would act 100% as{{#if a}}{{#if b}} smth {{/if}}{{/if}}
Currently there are cases (for example empty array) where these two constructions differ and it may result unexpected behaviour in constructions like:
Thank you.
The text was updated successfully, but these errors were encountered: