[h_referer == vs contains] | Community
Skip to main content
Level 5
April 18, 2022
Solved

[h_referer == vs contains]

  • April 18, 2022
  • 1 reply
  • 913 views

Hi, 

When should one use h_referer == and when we should use h_referer contains?  Any help is appreciated.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by curtiso1

Hello,

 

The == operator checks for full equality while contains checks if the key is contained within the string. In other words, use == when you want an exact match, and utilize contains when you only need the value to be present within the larger string. 

1 reply

curtiso1Adobe EmployeeAccepted solution
Adobe Employee
April 19, 2022

Hello,

 

The == operator checks for full equality while contains checks if the key is contained within the string. In other words, use == when you want an exact match, and utilize contains when you only need the value to be present within the larger string.