I have a set of Tokens containing CONTRACT NUMBERS and I'm trying to get the lead's Contract Number to simply display for one of them, but I keep getting a blank display in the email test. I tried setting a variable and assigning it the first Contract Number value. I then, wanted to check if the field is blank, and if so show nothing, then if the field contains data, i wanted the value to display. I'm not sure if there are errors with my syntax structure as this my first time writing this script. I've supplied the example below, and am welcome to any suggestions.
#set($contractNum1 = $lead.titledVehicleContractNumber1)
##Titled Vehicle Contract Number 01
#if($lead.titledVehicleContractNumber1.isEmpty())
##Show Nothing
#else
$contractNum1.equals($lead.titledVehicleContractNumber1)
#end
${contractNum1}