IR Receiver

Hey, guys so I have an IR receiver and remote controlling a servo. I want to be able to use different buttons(hex values) to run the same piece of code. How can I do that?

AUTO_lightswitch.ino (1.36 KB)

if(results.value == hexCodeA || results.value == hexCodeB)
{
   //do this function
}

Using the OR operator.