If the condition is simple enough, and the two assignments you're combining are the only writes to that variable, then yes -- having a single assignment to each variable is preferred.