Switched logic