You haven't really provided enough information, so I'm only guessing. In particular, the types of your variables are probably a contributor.

However, the culprit is probably the comparison...