Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 2
adilk
Level 2

Likes

10 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
adilk
Level 2

Likes

10 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
adilk
Level 2

08-07-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Andrey_Osadchuk
MVP

Likes

510 likes

Total Posts

917 posts

Correct Reply

243 solutions
Top badges earned
Coach
Contributor
Seeker
Bedrock
Boost 500
View profile

Avatar
Coach
MVP
Andrey_Osadchuk
MVP

Likes

510 likes

Total Posts

917 posts

Correct Reply

243 solutions
Top badges earned
Coach
Contributor
Seeker
Bedrock
Boost 500
View profile
Andrey_Osadchuk
MVP

09-07-2019

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.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
adilk
Level 2

Likes

10 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
adilk
Level 2

Likes

10 likes

Total Posts

67 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
adilk
Level 2

09-07-2019

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)