I have this ampscript:
%%[
var @id, @reference221, @reference222, @Apointer221, @ASKU221, @Apointer222, @ASKU222, @reference223, @reference224, @content222
SET @id = [email]
SET @reference221 = LookupRows("case2_2step1", "email", @id)
IF RowCount(@reference221) == 2 THEN
SET @reference222 = LookupOrderedRows("case2_2step1", 2, "email", "email", @id)
SET @Apointer221 = Row(@reference222, 1)
SET @ASKU221 = Field(@Apointer221, "sku")
SET @Apointer222 = Row(@reference222, 2)
SET @ASKU222 = Field(@Apointer222, "sku")
SET @reference223 = LookupRows("case2_2step3", "email", @id, "artikelnummer", @ASKU221)
SET @reference224 = LookupRows("case2_2step3", "email", @id, "artikelnummer", @ASKU222)
ENDIF
IF (@reference223 == 1 AND @reference224 == 1) THEN SET @content222 = 'A'
ELSEIF (@reference223 == 1 AND @reference224 > 1) OR (@reference223 > 1 AND @reference224 == 1) OR (@reference223 > 1 AND @reference224 > 1)
THEN SET @content222 = 'B' ENDIF
]%%
%%= v(@id) =%% <br>
%%= RowCount(@reference221) =%% <br>
%%= v(@ASKU221) =%% <br>
%%= v(@ASKU222) =%% <br>
%%= RowCount(@reference223) =%% <br>
%%= RowCount(@reference224) =%% <br>
%%= v(@content222) =%% <br>
All variables return values that I expect but somehow this @content222 returns nothing even though the variables (@reference223 and reference224) fulfil the IF ELSE condition. I'm banging my head on this. If anybody notice anything wrong please help
artikelnummer
field in your data extension a number or text data type?