Add judgeField macro