第一个if是表示虚拟语气;表示现在我的身份并不是一名老师;对现在状态的虚拟需用一般过去式;
第二个if等同于whether ,是否的意思;
后面用if they had understood 表示他们是否已经掌握了的意思