http://qs1969.pair.com?node_id=1086120


in reply to conditional statement works one way, but not the other (Updated)

Please think of the poor programmer who comes after you and has to maintain the code. Don't try to cramp everything into one statement, it makes it much harder to read.

A good rule of thumb for readability is that an assignment should (nearly) always be s separate statement, and not part of some expression.