Conditional decisions wthout Velocity script

Conditional decisions wthout Velocity script

Hi All,

Is there any way to perform simple IF based logic in an email without using Velocity script(s?).  Basically the issue we have is that Velocity scripts do not work with dynamic/segmented content and we require content to be outputted by language.

At a high level (and pseudo code) we need to do the following:

IF myVariable = 0
  SHOW THIS
ENDIF

If the value is not = 0 it should not show the content.  It seems Velocity script is the only way to do this?

Thoughts?

Thanks

N

Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Conditional decisions wthout Velocity script

I often do that in Salesforce using APEX, populting a custom field visible to the Marketo user.

The email just references the token corresponding to that field such as {{my.conditional}}

That technique is agnostic to dynamic content and segmentations. Simple and very effective.

Re: Conditional decisions wthout Velocity script

Hi Breno,

APEX is perhaps not really an option - the question really is can you do conditional code in an email without using Velocuty script - my guess is, based on the answer, it is not?

It's a feature gap really - Velocity works normally but does not work with dynamic content blocks.

N