Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
If $lead.ClinicID ) does not have a value in marketo, I want to print an alternative instead, I have tried to check if it's null, true/ false, or an empty string, but none of them are working properly. How do I check if CID has a value or not? #set( $CID = ${lead.ClinicID} )
So this still isn't working, it must mean that when that data doesn't exist it's something other then "null", how can we figure out what is going on? It always returns true for me, it doesn't matter if there is a clinic ID or not, and the contains never prints even if it does exist.
I'm sorry, I am really not getting how to check if the value is null, that's the part I have been stuck on for this entire post. Doing thisif $reference is null$display.alt($reference,"").isEmpty() is true Is always returning true for me, regardless of the value of "Reference",#set( $NME = "Physiot...
Ok that makes sense, so how do I check if it's null? Putting null I get an error.
So the first problem is if Clinic ID has no value, it's printing the variable in the email.The second issue is if the value of clinicID doesn't exist, it's still printing the variable in my email (like the below)$clinics.Map[$CID]["NME"] So that is why I am saying the IF statements are not evaluatin...
ClinicID is the correct name, and it has data as expected. The issue is that the IF statements are not evalutating properly.
I don't know why this isn't working for me, as everything below makes sense. Currently it's always returning false. I broke out the IF statements to see why, and the "IS Empty" is always returning true, and the other two are always returning false.I am testing 3 scenarios to make sure it all works, ...
Hi,Thank you for the detailed reply, it makes perfect sense now! However when I try to do it, if i adjust to the syntax you provided I am not getting an output in my test email, it just prints "$CID", etc. When I add the Quote and {} I get CID and NME to print, but I cannot figure out what syntax ma...
#set($CID = ${lead.ID})#set($NME = "$clinics.Map.get($CID).NME")#if( $CID.isEmpty() || $NME.isEmpty() )Physiotherapy#else$NME#end
I am using a JSON hash map and would like to validate that I am getting data, and if not that I provide a "Default value. I cannot get it to check properly if my hash has a value or not. For some reason the $NME is already returning true. I am trying to account for cases where I don't have a match ...