Why does checking the result of an assignment operation work, but cant be combined with other conditions?
Can a variable be defined only in the scope of an if-statement, similar to how it's often done for for-loops?