after changing the name of a Script token it doesn't work anymore
Hello all,
at this weekend I created that token for a tracking link. After creating it everything worked fine, but after changing the name of the token it doesn't work anymore.
The script of the script token was is this one:
#set($carFirstLACategory = "887")
#set($consolidationFirstLACategory = "8992946")
#set($freelanceFirstLACategory = "40895887")
#set($livingFirstLACategory = "886")
#set($freeusageFirstLACategory = "888")
#if($lead.cma_latestLaCategory == "CAR")
#set($lead.cma_latestLaCategory = $carFirstLACategory)
#elseif($lead.cma_latestLaCategory == "HOME")
#set($lead.cma_latestLaCategory = $livingFirstLACategory)
#elseif($lead.cma_latestLaCategory == "TRADE")
#set($lead.cma_latestLaCategory = $freelanceFirstLACategory)
#elseif($lead.cma_latestLaCategory == "CONSOLIDATION")
#set($lead.cma_latestLaCategory = $consolidationFirstLACategory)
#else
#set($lead.cma_latestLaCategory = $freeusageFirstLACategory)
#end
${lead.cma_latestLaCategory}
With this script it showed me, depending on the category a customer has, the number I needed.
Everything worked fine, till today morning when I changed to token name from "Tracking_link" to "category", everything was fine and the script worked. Now it always shows me the number "888" even though it should show me "887".
Why does that happen?