ENDIF is needed to terminate a conditional group of a command file statements which was started with an IF or ELSE statement. See the description on ELSE for an example, and refer to the notes on Command Files for more information. Also see the discussion of MOVE for an example of ENDIF usage.