The manual will teach you this:
Compare current value
Only valid in a For each element loop, either as a following condition or in a sub-event.
It clearely states that those two are a pair, that has to be used as a pair. Where is the For each element loop in your code ?
I would love to help you. But, honestly, will you understand the word and terms i use, if you have not read the manual?