.type IF.TST .type .ps 20,70,0,0.header spacing 1 .first title IF test .subtitle Immediate test .define command /q/if ABC .define command /qq/.iif ABC;line 1 _.IIF ABC This line appears .nf .variant ABC .qq .iifnot ABC;_.IIFnot ABC *** This line does not appear .iif A;_.IIF A *** This line does not appear .iifnot A;line 2 _.IIFNOT A This line appears line 3 - last line of immediate test .subtitle regular test .page .if ABC .if not Ab .if Ab *** This line should not appear (.if ab) .ifnot trash *** This line should not appear (.if trash) .endif trash .endif Ab .else Ab *** This line should not appear (.else Ab) .else AB .; *** ERROR 1 *** This line should not appear (.else Ab 2) .endif ABC .; *** ERROR 2 .endif Ab .endif ABC .endif .; *** ERROR 3 .q .; *** ERROR 4 .variant 0123456789 .; No error generated .variant 01234567890123456789012345678901234567890 .; *** ERROR 5 .variant 1 .variant 2 .variant 3 .variant 4 .variant 5 .variant 6 .variant 7 .variant 8 .variant 9 .variant 10 .variant 11 .variant 12 .variant 13 .variant 14 .variant 15 .variant 16 .variant 17 .variant 18 .variant 19 .variant 20 .variant 21 .variant 22 .variant 23 .variant 24 .variant 25 .variant 26 .variant 27 .variant 28 .variant 29 .variant 30 .variant 31 .variant 32 .variant 33 .if 1 .if 2 .if 3 .if 4 .if 5 .if 6 .if 7 .if 8 .if 9 .if 10 .if 11 .if 12 .if 13 .if 14 .if 15 .if 16 .if 17 .if 18 .if 19 .if 20 .if 21 .if 22 .if 23 .if 24 .if 25 .if 26 .if 27 .if 28 .if 29 .if 30 .if 31 .if 32 .if 33 .; *** ERROR 6 .endif 32 .endif 31 .endif 30 .endif 29 .endif 28 .endif 27 .endif 26 .endif 25 .endif 24 .endif 23 .endif 22 .endif 21 .endif 20 .endif 19 .endif 18 .endif 17 .endif 16 .endif 15 .endif 14 .endif 13 .endif 12 .endif 11 .endif 10 .endif 9 .endif 8 .endif 7 .endif 6 .endif 5 .endif 4 .endif 3 .endif 2 .endif 1 .type .type LINE 1 First line unconditional .if ABC .if not Ab LINE 2 This line should appear (IF ABC,.if not Ab) .else Ab *** This line should not appear (.else Ab) .endif Ab .else ABC *** This line should not appear (ENDIF AB,.else ABC) .endif ABC LINE 3 This line should appear (.endif Ab,.endif ABC) .if Ab *** This line should not appear (.if Ab) .else Ab LINE 4 This line should appear (.else Ab) .endif Ab .variant Ab .variant CDE .if not Ab *** This line should not appear (.if not Ab) .endif Ab LINE 5 This line should appear (.endif A) .IF Ab LINE 6 This line should appear (.if Ab) .IF B *** This line should not appear (.if Ab .if B) .endif B .endif Ab .variant 11 .if 11 LINE 7 This line should appear (.if 11) .endif 11 .no variant 11 .ifnot 11 LINE 8 This line should appear (.if not 11) .endif 11 LINE 9 Last line page 2 .subtitle TEST UNCONDITIONAL .page .disable unconditional *** This line should not appear (.disable unconditional) .if AB LINE 1 This line should appear (.if AB) .if B *** This line should not appear (.if B .endif B LINE 2 This line should appear (.endif B) .endif AB *** THIS line should not appear (.endif AB) .enable unconditional LINE 3 This line should appear (.enable uncon) .if AB B LINE 4 This line should appear (.if AB B) .ifnot CDE B C *** This line should not appear (.ifnot CDE B C) .endif * LINE 5 This line should appear (.endif B) .endif * LINE 6 last line page 3 .subtitle TEST WILD variants .page .variant Z* .if ZAB line 1 this line appears (.if ZAB) .endif * .ifnot ZBA this line does not appear (.ifnot ZAB) .endif * .iif ZBB;line 2 this line appears (.iif ZAB) line 3 last line page 4