Let's say we have two variables X
and Y
. X
is 53
and Y
is 52
. What I want to do is compare them by adding 1
to the Y
, so that it would be 53
- therefore X
would be equal to Y + 1
.
I am trying to do it by simply using equal operator and addition for Y
variables, like so:
X == Y + 1
Even though this looks simple enough, I am getting false
as the result. What am I missing?