Separated logic from return statements in compound operators