Here, that sequence of fields always results in 1,2, then 5. Although I remember that the operation of the SEQ field changed at some point (a long time ago), I checked back (to Windows Word 2 :-) ) and it always seems to have worked this way. Maybe someone
else can shed light on why things have changed.
So I do not know what you were doing before that "made it work" so you (presumably) got 1,2,3.
The only way I know that will avoid this - assuming that there is no better way that avoids SEQ fields - is to store and restore the value of the SEQ each time it is referenced. In effect, like thi:
{ SET M { SEQ a \c } }{ IF 1 = 1 "{ SEQ a }{ SET M { SEQ a \c } } Maybe you
have some text" "text with no numbering" }{ SEQ a \r{ M } \h }
{ SET M { SEQ a \c } }{ IF 1 = 1 "{ SEQ a }{ SET M { SEQ a \c } }
Maybe you have some text" "text with no numbering" }{ SEQ a \r{ M } \h }
{ SET M { SEQ a \c } }{ IF 0 = 1 "{ SEQ a }{ SET M { SEQ a \c } }
Maybe you have some text" "text with no numbering" }{ SEQ a \r{ M } \h }
{ SET M { SEQ a \c } }{ IF 0 = 1 "{ SEQ a }{ SET M { SEQ a \c } }
Maybe you have some text" "text with no numbering" }{ SEQ a \r{ M } \h }
{ SET M { SEQ a \c } }{ IF 1 = 1 "{ SEQ a }{ SET M { SEQ a \c } }
Maybe you have some text" "text with no numbering" }{ SEQ a \r{ M } \h }
(As usual,all the {} have to be the field brace pairs you can typically insert using cmd-F9 or fn-cmd-F9 )
FWIW I have tried various other things in the past that try to manipulate the code of the SEQ field itself, so that in the case 1 = 1 you insert { SEQ a } whereas in the case 0 = 1 you insert { SEQ b \h }, e.g.
{ SEQ { IF 1 = 1 "a" "b \h" } }
Unfortunately, it just does not seem to be possible to insert this type of switch code using a nested field (whereas it is possible to build up codes such as \Charformat using { SET S "Charformat" }{ REF X \{ S } } )