3

Does anyone know if it is possible to execute conditional statements in Exacttarget?

For example, if x variable === y, render image 1.

if x variable === z, render image 2.

This is fairly out there and the docs doesn't cover it, so I'm just crossing my fingers here

3stacks
  • 1,880
  • 1
  • 16
  • 21

2 Answers2

2

I found a relevant question on Stackoverflow:

Conditional Formatting in ExactTarget Personalized Subject Line

Which lead me to find: https://help.exacttarget.com/es-US/documentation/guide_template_language/built_in_block_helpers/

Question answered! :)

Community
  • 1
  • 1
3stacks
  • 1,880
  • 1
  • 16
  • 21
2

It is, its called Ampscript. You can do all your basic rules and lookups with this. doc link

%%[IF expression1 <comparison operator> expression2 THEN]%%
    [wrapped script or email content]
%%[ELSEIF expression1 <comparison operator> expression3 THEN]%%
    [wrapped script or email content]
%%[ELSE]%%
    [wrapped script or email content]
%%[ENDIF]%%
Bidstrup
  • 1,597
  • 2
  • 16
  • 32