You could create 2 different expressions and enter the condition in the 'Conditional' expression so that each expression only calculates when the condition is met.
but it would depend on what you are trying to accomplish. Can you elaborate on why you want to remove the IF ? Performance ? Easy to read ? or something just not working ?