New function: map_conditional() for an if-then-else syntax.