cortezaproject / corteza-docs

Documentation, manual, instructions
https://docs.cortezaproject.org
Apache License 2.0
124 stars 68 forks source link

Templating Documentation update #367

Open andre-badenhorst-crust-tech opened 1 year ago

andre-badenhorst-crust-tech commented 1 year ago

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"}}