AnsweredAssumed Answered

Detect empty field with velocity

Question asked by Franky Ruysschaert on Aug 9, 2019
Latest reply on Aug 9, 2019 by Sanford Whiteman

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 ...


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.