I'm creating a series of tokens so we can start using one email asset for several products. The token I am having trouble with is setting up several content blocks and displaying one if a lead has an active subscription to a qualifying product. It's approved when I place it inside the email, but when "previewing by list or person" nothing is being output. Here is the code I'm currently using in my token:
#if( $zuoraSubscription.status == "Active" )
#if( $zuoraSubscription.productName == "SOH" )
block of content for SOH here.
#elseif( $zuoraSubscription.productName == "WCA" )
block of content for WCA here.
#elseif( $zuoraSubscription.productName == "TPE" )
block of content for TPE here.
#elseif( $zuoraSubscription.isEmpty() )
You have no active subscriptions.
... View more