2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /******************************************************************************
23 Ends an If block. If the condition of the If command is false,
24 execution will skip to the corresponding EndIf command, in case there
25 isn't an Else command present.
45 10.01.2000 SDuvan implemented
47 ******************************************************************************/
49 #include <proto/dos.h>
51 #include <dos/dosextens.h>
52 #include <dos_commanderrors.h>
54 #include <aros/shcommands.h>
60 struct CommandLineInterface
*cli
= Cli();
63 if ((cli
!= NULL
) && (cli
->cli_CurrentInput
!= cli
->cli_StandardInput
))
65 return RETURN_OK
; /* Normal operation: do nothing! */
69 PrintFault(ERROR_SCRIPT_ONLY
, "EndIf");