.ps 20,70,0,0.header spacing 1 .first title IF test .subtitle 20 x 70 .variant ABC .nf .type .type *** This test generates 7 ERRORS .type .if ABC .if not Ab .if Ab .; *** ERROR 1 .else Ab *** This line should not appear (.else Ab) .else AB .; *** ERROR 2 *** This line should not appear (.else Ab 2) .endif ABC .; *** ERROR 3 .endif B .; no error generated .endif Ab .endif ABC .endif B .; *** ERROR 4 .endif .; *** ERROR 5 .variant 0123456789 .; No error generated .variant 01234567890 .; *** ERROR 6 .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 .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 .; *** ERROR 7 .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 3 First line unconditional .if ABC .if not Ab LINE 4 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 5 This line should appear (.endif Ab,.endif ABC) .if Ab *** This line should not appear (.if Ab) .else Ab LINE 6 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 7 This line should appear (.endif A) .IF Ab LINE 8 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 9 This line should appear (.if 11) .endif 11 .no variant 11 .ifnot 11 LINE 10 This line should appear (.if not 11) .endif 11 LINE 11 Last line page 1 .subtitle TEST UNCONDITIONAL .page .disable unconditional *** This line should not appear (.disable unconditional) .if AB LINE 3 This line should appear (.if AB) .if B *** This line should not appear (.if B .endif B LINE 4 This line should appear (.endif B) .endif AB *** THIS line should not appear (.endif AB) .enable unconditional LINE 5 last line page 2 (.enable unconditional)