Simplifies conditional assignment