ok, thanks for the replys i have one more question.
would x=y-x;
be 2*x==y
am i right?
No, not at all.
x=y-x would assign y-x to the the variable x.
2*x == y is a comparison, it is true with 2*x equals y.
Algebraically, yes. But code-wise, it's as hanst99 says.