in reply to Re^2: Search and Replace Within Subscopes
in thread Search and Replace Within Subscopes

Well that certainly explains where @Agent eq 'XX' is coming from. And I just assumed that you didn't the difference between an array and a scalar. :-)