Use a conditional assignation to reduce code size