In a batch program I have a variable that performs different when within a block of code (see snippet). If the code is executed in an IF statement block %CONNECTIONS_VALUE% equals "" (double quotes). If I remark out the IF statement start and end lines the value returned is correct.
What needs to be changed in standard Windows batch files to retain variables set in a block of code?
if not %CHECK_CONNECTIONS% == 0 (
echo CONNECTIONS_VALUE: %CONNECTIONS_VALUE%