if (Ralph == 1)
{
  ....
}
else if (Ralph == 2)
{
  ....
}
// here an ISR changes Ralph from 4 to 1
else if (Ralph == 3)
{
  ....
}

else if (Ralph == 4)
{
  ....
}