Streamlined if-else-if