Syntactic sugar for shorthand version of multiple simple switch/ifelse assignments