in reply to IF and GREP Question

See the answers you got in Help with for loop and figure it out