Getting an error when using <<If>><<EndIf>> in a template for an email attachment

Hi all,

I'm trying to make use of an IF expression in an email attachment (xlsx) template but I'm encountering an error.
The template works fine without the IF expression included, and the only reason I'm attempting to add it is to improve the presentation by showing the same data with some conditional formatting.

The IF expression is inside a <<Start>><<End>> (Thus the <<End>> appended to the expression)

<<If: ([Condition] = "New")>><<[Condition]>><<EndIf>>
<<If: ([Condition] = "Used")>><<[Condition]>><<EndIf>><<End>>

But instead I get the following error

Screenshot 2023-10-30 at 11.23.46.png

I've directly copied the structure as detailed on the Use If expressions in templates page so I'm unsure what is causing the error.

If anyone has any insights that would be appreciated

0 4 280
4 REPLIES 4
Top Labels in this Space