I am unable to set the variables inside if else.
@echo off
set cur_date=check
echo %cur_date%
if "true"=="true" (
echo 1
set curs_date=checks
echo %curs_date%
)
pause
In above code, echo %cur_date% and echo 1 are getting printed.
But echo %curs_date% is not assigned.