%%[
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
]%%