Rules - condition does not work as expected in Rule | Community
Skip to main content
Michael_Soprano
Level 10
February 4, 2026
Solved

Rules - condition does not work as expected in Rule

  • February 4, 2026
  • 1 reply
  • 21 views

I have got such a condition which checks if its product page.

If I use it on the product page in web browser console it works. 

Data element looks at follows: 

Then in Rules condition looks at follows: 

Any idea why this does not work??

Best answer by bjoern__koth

Since you're defining a function, make sure to return the function evaluation in your data element 

 

return isPdP()

1 reply

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 10, 2026

Since you're defining a function, make sure to return the function evaluation in your data element 

 

return isPdP()

Cheers from Switzerland!