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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

[h_referer == vs contains]

Avatar

Level 3
Level 3

Hi, 

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

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

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. 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

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.