compate integer values, if same return 1

i guess its the logic node, but i cant get it working without booleans.

i found this thread:

viewtopic.php?f=27&t=2215

thanks