Skip to main content
Level 5
Apr 18, 2022 3:23 PM UTC
Solved

[h_referer == vs contains]

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.
curtiso1Accepted solution
Adobe Employee
Apr 19, 2022 2:25 PM UTC

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
Apr 19, 2022 2:25 PM UTC

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. 

Translate