Created
June 9, 2018 15:02
-
-
Save wvpv/3db414cd6b231717f7d97ac333bcb12f to your computer and use it in GitHub Desktop.
CNX18-ECAS-init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
var @debug, @sk, @rows, @row, @rowCount | |
set @debug = 1 | |
set @sk = AttributeValue("_subscriberkey") | |
set @rows = LookupRows("LoyaltyDemographics", "SubscriberKey", @sk) | |
set @rowCount = rowcount(@rows) | |
var @language, @region | |
set @language = "unknown" | |
set @region = "unknown" | |
if @rowCount > 0 then | |
set @row = row(@rows, 1) | |
set @language = field(@row,"language") | |
set @region = field(@row,"region") | |
endif | |
if @debug == 1 then | |
output(concat("<sk: ", @sk)) | |
output(concat("<br>language: ", @language)) | |
output(concat("<br>region: ", @region)) | |
endif | |
]%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment