FOR loop with nested IF / IFF

Discussion in 'More' started by Chris Wilcock, Oct 5, 2015.

  1. Hello

    Prior to version 18, the following batch file snippet would display 1, 2, 3 on seperate lines. With version 18.32 however, only the first line is printed. If I change the condition to "1 EQ 1" then all three lines are printed.

    I've tried this with TCC-13 and all three lines are printed, as I would have expected.

    Is this the expected behaviour, or is this a regression in version 18?


    FOR %a IN (1 2 3) DO (
    ECHO %a

    IFF 1 EQ 0 THEN

    FOR loop with nested IF / IFF

Share This Page

Forums Teetk