Side-effects in conditions of if-statements