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

Templating Documentation update #367

Open
andre-badenhorst-crust-tech opened this issue Feb 21, 2023 · 0 comments
Open

Templating Documentation update #367

andre-badenhorst-crust-tech opened this issue Feb 21, 2023 · 0 comments

Comments

@andre-badenhorst-crust-tech

When looking at templating logic operators for conditional rendering, there seems to be no possible way to compare string comparisons using '=='.

The resource was found on stackoverflow

It was found that replacing the below code works for checking string values.
New code : {{if eq $element.type "credit_note"}}
Old code : {{if $element.type == "credit_note"}}

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

No branches or pull requests

1 participant