You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"}}
The text was updated successfully, but these errors were encountered:
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"}}
The text was updated successfully, but these errors were encountered: