Answer: x==y
Step-by-step explanation:
"X is equal to Y", prefaced with e.g. "if" or "when" would be unambiguously used to indicate a check for equality, as in "x == y".