dynk_computeFUN(): Convert endless if (..) elseif(..) ..... into switch case