Skip to main content
adilk
Level 4
Jul 8, 2019 1:48 PM UTC
Solved

Rule condition: Difference between Variable and Value Comparison [PageURL matches x]

I'm trying to structure a Rule where:

Event = Direct Call to load Adobe Launch script along with accessing all the sProp variables (such as pageURL)

IF I  want another rule to fire only on certain pages, what would be the differnece between setting up either of these two conditions:

Variable %pageURL% matches Regex /required-page

VS

Value Comparison %pageURL% matches Regex /required-page

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
Jul 9, 2019 4:43 PM UTC

Hi Adilk,

The Variable condition type is designed to pull the JS variable and compare its value with the one you set in the Regex expression. You can't check a Data Element value with this type of condition.

The Value Comparison condition does support Data Element.

2 replies

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
Jul 9, 2019 4:43 PM UTC

Hi Adilk,

The Variable condition type is designed to pull the JS variable and compare its value with the one you set in the Regex expression. You can't check a Data Element value with this type of condition.

The Value Comparison condition does support Data Element.

Translate
adilk
adilkAuthor
Level 4
Jul 9, 2019 7:34 PM UTC

Thanks, Andrey.

So, if my Variable condition is digitalData.pageInfo.pageURL and my Value Comparison has data element %pageURL% in the condition, both should yield the same result? (Either TRUE or FALSE)

Translate