Extending IF assignment