وَإِنْ وَقَعَ الْخَبَرُ بَعْدَ «إِلَّا» نَحْوُ: «مَا زَيْدٌ إِلَّا قَائِمٌ»، أَوْ تَقَدَّمَ الْخَبَرُ عَلَى الِاسْمِ، نَحْوُ: «مَا قَائِمٌ زَيْدٌ»، أَوْ زِيدَتْ «إِنْ» بَعْدَ «مَا»، نَحْوُ: «مَا إِنْ زَيْدٌ قَائِمٌ»، بَطَلَ الْعَمَلُ، كَمَا رَأَيْتَ فِي الْأَمْثِلَةِ.
Translation: If the predicate follows illā, or precedes the noun, or an added in comes after mā, then the governing action ceases, as shown in the examples.
The source states these three cases together; the following slides parse them separately.