- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
I have a requirement in my project for a tag to fire as per below condition but the Set Data Value Extension doesnt have an option to add an OR condition within the AND condition. So is there any other option like a different extension type that will provide me the below piece of code.
I do not want to use the Javascript Code extension.
if (b['page_id'] == 'XYZ' && (b['product_code'] == 'ABC' || b['product_code'] == 'LMN')) {
Set some data
}
You should be able to do this through a Set Data Values extension. Here is an example:
Then add as many Data Sources you need to be set.
Thanks @david_bird
This will help lot. Just quick Question. Is that possible to add plus button inside the Condition box to add OR condition.
for example, in this case after product_code ABC canwe add plus sign to add OR condition. I know it looks quite complicated but just checking is there any possibilty like that?
Copyright All Rights Reserved © 2008-2023