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

πŸš€ Feature: support of Comparison operators handler helpers #5263

Closed
2 tasks done
jainpawan21 opened this issue Mar 6, 2024 · 2 comments Β· Fixed by #5334
Closed
2 tasks done

πŸš€ Feature: support of Comparison operators handler helpers #5263

jainpawan21 opened this issue Mar 6, 2024 · 2 comments Β· Fixed by #5334
Assignees

Comments

@jainpawan21
Copy link
Member

πŸ”– Feature description

Comparison operators β€” operators that compare values and return true or false.
The operators include: >, <, >=, <=, ===, and !==.

Example:-
{{#gt step.total_count 5}}

🎀 Why is this feature needed ?

To compare two variable values and change content dynamically in step content editor

✌️ How do you aim to achieve this?

New handlebar helper implementation can be added here
https://github.com/novuhq/novu/blob/next/packages/application-generic/src/usecases/compile-template/compile-template.usecase.ts#L9

πŸ”„οΈ Additional Information

No response

πŸ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Copy link

linear bot commented Mar 6, 2024

@michaldziuba03
Copy link
Contributor

@jainpawan21 you can assign me

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 a pull request may close this issue.

2 participants