AnsweredAssumed Answered

Program token with if/else not returning expected values

Question asked by b82ed2dc17357e3ebecfef8688d215d430a5d753 on Sep 19, 2017

Hi Marketo experts,

 

I've started learning the velocity scripts and was testing something very basic which didn't work.

 

I've created a program token which returns incorrect results. Below is the config:

I tested email with 'Customer ID - 777' and it is returning token value as Bad ID returened, ID is ${lead.Customer_id}.

Any idea what I'm doing wrong in the script below?

Thanks in anticipation !

 

Outcomes