I would like to use a global array / variable in my function. The function should be executed as long as IDS are in the array.
In the variable "var