diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y
index a1da55015a65c80954ce9d8ec238bce9a84b81a9..9a92c0b986eae1cad4c8c84d2a36c7629e81b5f7 100644
--- a/Parser/Gmsh.y
+++ b/Parser/Gmsh.y
@@ -3249,7 +3249,7 @@ Loop :
         // Go after the next ElseIf or Else or EndIf
         int type_until2 = 0;
         skip_until_test("If", "EndIf", "ElseIf", 4, &type_until2);
-        if(!type_until2) ImbricatedTest--;
+        if(!type_until2) ImbricatedTest--; // EndIf reached
       }
     }
   | tElseIf '(' FExpr ')'