This is not the whole story:
set tgt=First if "A" == "A" ( set tgt=Second echo BB %tgt% ) set tgt=Third echo BBB %tgt% set tt=Fourth set tt=Fifth echo TTT %tt%
Gives BB First BBB Third TTT Fifth