Quastion about comparing two veriables

i have a quastion: i have two veriables and say they have value that allways rised by 1… how can i compar them thet they will be 1 and 1 value?
thanks for the helpers