At this point, input_bool
would be undefined, so
if %input_bool%==1 goto ASKFORINPUT
is resolved as
if ==1 goto ASKFORINPUT
IF
syntax is if
string1 operator string2 action.
string1 is ==1
; operator is goto
. goto
is not an operator that if
understands, so it spits out an objection.
You need if "%possiblyemptyvariable%"=="1" goto ...
But - not a good idea to GOTO
in a call
ed routine. goto :eof
to exit the routine if you must, else your flow-control will get out-of-hand.