Rebar tag list overriding in script

Hi all. I have this script below which multi rebar tags all the rebar. The issue is when you run it the tag is replaced by the last rebar element in the list, and will do this for all rebar elements selected.


So if you select 3x elements of rebar it tags the first one 3x times. Not too sure how to get around it

solved. The problem was to take this out

Assuming this was element binding? If not can you post more than ‘solved’ so that others can learn from you?