最佳答案
when I'm running this script (from a .bat file):
set var1=true
if "%var1%"=="true" (
set var2=myvalue
echo %var2%
)
I always get:
ECHO is on.
Meaning the var2
variable was not really set.
Can anyone please help me understand why?