Detect empty field with velocity
I need to know if a certain field in the database is empty or not to create an email link with velocity scripting
#if ( ${lead.mkt3497link3} != "" )
#set ...
#end
Doesn't seem to work, although the field is empty it is selecting the if cause.
For debug reasons I have displayed the "content" of that empty field : the system displays "${lead.mkt3497link3}" as the value for the field. So the field is not evaluated, it seems...
What am I doing wrong and what is the correct way the check for empty fields.