Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

invalid 'in' operand within dynamic content condition

Avatar

Level 2

Hello community,

 

i created dynamic content on an email delivery and i would like to use the "IN" operand to check if the product ID is in a list but i received an error message

 

"Error while compiling script 'DM1091[htmlfr_beContent]' line 425: invalid 'in' operand "xxx"."

 

Here is the condition :

context.targetData.product_Id in ('xxx','yyy','zzz')

 

So the question is : is it allow to use IN operand on a dynamic content condition within an email delivery ?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @malexandre,

 

I believe IN operand is not supported on ACS java script syntax. Refer the comparison operator section on below documentation: https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/filterin...

 

Thanks!

Thanks, Sathees

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @malexandre,

 

I believe IN operand is not supported on ACS java script syntax. Refer the comparison operator section on below documentation: https://experienceleague.adobe.com/docs/campaign-standard/using/managing-processes-and-data/filterin...

 

Thanks!

Thanks, Sathees

Avatar

Level 2

Thanks for your answer.

 

I already used the IN operand on a worflow with the advanced mode. That's why I though it was possible.