Expand my Community achievements bar.

SOLVED

[h_referer == vs contains]

Avatar

Level 4
Level 4

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.