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

make "and" and "or" accept any number of parameters #687

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented Dec 20, 2024

Writing ifs with multiple conditions used to be very painful, and not very performant

One had to write {{#if (and (cond1 (and cond2 cond3)))}}

One can now write {{#if (and cond1 cond2 cond3)}}

Writing ifs with multiple conditions used to be very painful, and not very performant

One had to write {{#if (and (cond1 (and cond2 cond3)))}}

One can now write {{#if (and cond1 cond2 cond3)}}
@lovasoa lovasoa force-pushed the or_and_multiple_params branch from 0b932ea to caf7fd6 Compare December 20, 2024 22:43
@coveralls
Copy link

coveralls commented Dec 20, 2024

Coverage Status

coverage: 82.062% (+0.04%) from 82.024%
when pulling caf7fd6 on lovasoa:or_and_multiple_params
into 190bc3b on sunng87:master.

Copy link
Owner

@sunng87 sunng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sunng87 sunng87 merged commit 0df66fa into sunng87:master Dec 23, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

3 participants