use assignment in conditionals