You’re going to have to experiment. But I think you’ll find that if you make the update inside the function, it will work. So, this

inside the function.
You’re going to have to experiment. But I think you’ll find that if you make the update inside the function, it will work. So, this

inside the function.