Hi Alexan,
what you think is right it is the assignment which is first done and then the if().
And note, this is the only place where you are allowed to use an assignment operator inside an if()condition by the compiler.
If you try to assign an int variable to some value it never returns a boolean for the condition check to decide on, and in
java it is always required that what we put inside condition checking stmt has to return a boolean