Loosened LOOP./END. precision requirement
Got switch() and switchdigitXY() working.