Quote:
Originally Posted by ownedbycats
I'll try to use this thread for smaller questions to avoid spamming up this section even more.
Is there any semantic difference between
Code:
"foobar" in #column
and
Code:
#column in "foobar"
They seem to have the same results when I used them in a GPM template.
|
They are very different. Consider what happens if
Code:
#column == 'foobar is a strange word'
The first test would succeed. The second test would not.
If in your situation the two always both succeed then you probably should be using '==' instead of 'in'. EDIT: Or one of the list operators.