Avatar

Level 3

As is pretty standard, I'm including Firstname in our emails:

<%= recipient.firstName %>, you're almost there!

Could someone let me know how I would add some logic to the above so that in the unlikely event of firstName being blank, the intro line reads only "You're almost there".

So something like:

IF <%= recipient.firstName = null%> THEN "You're almost there", ELSE, <%= recipient.firstName %>, you're almost there!

Just need help with the precise syntax.

Thanks

Tom