Correct if...else block in .set