Thanks for looking into that guys.

Quote:
So unless all your items names are consecutive numbers from 1 to $hget(table,0).item, things will go wrong.


It is consecutive. When a new item gets added, the %id is created with: var %id = $calc($hget(table,0).item + 1)

I will make the re-write like you proposed.
I made the variables so that its easier to understand whats happening for me, but I want it to be as short as possible.