Ahmed’s answer is good, but there’s also:
switch(color)
case YELLOW:
if(AlsoHasCriteriaX)
case GREEN:
case RED:
case BLUE:
Paint();
else
default:
Print("Ugly color, no paint.");
people tend to forget how powerful switches are