Why does this batch variable never change even when set?

Viewed 30052
@echo off
SET first=0
FOR %%N IN (hello bye) DO (
SET first=1
echo %first%
echo %%N
)

It seems that the variable "first" is always 0. Why?

1 Answers
Related