SWITCH command compared to an If Else
function practice