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

Add and and or helpers #27

Closed
sanjeevkpandit opened this issue Apr 11, 2016 · 0 comments
Closed

Add and and or helpers #27

sanjeevkpandit opened this issue Apr 11, 2016 · 0 comments
Assignees
Labels

Comments

@sanjeevkpandit
Copy link
Contributor

  • Add and and or helper.
  • For and: this will accept two or more parameters and return true if all of them are true.
  • For or: this will accept two or more parameters and return true if any of them is true.
  • This will allow us to do:
{{#if (and value1 value2) }}
    // do Something
{{else}}
    // do something else
{{/if}}

{{#if (or value1 value2) }}
    // do Something
{{else}}
    // do something else
{{/if}}
@sanjeevkpandit sanjeevkpandit self-assigned this Apr 11, 2016
@sanjeevkpandit sanjeevkpandit changed the title And helper Add and and or helpers Apr 11, 2016
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

1 participant