@blird Resource to List, then to Foreach Loop.
Here’s something similar for me, he follows the list of Links and how many of them he will work on:
Global Variable is not increasing on each new thread
-
I'm having a weird issue all of a sudden:
I set global variable before creating threads. Let's say value of 5 (int).
I create 10 threads, and wish to have each thread increase it by 1, so I "Increase global variable" at the start of the thread function, but each thread uses the 6 value, not 6,7,8,9,10, etc...
Before "Call function in several threads":

Inside the fucntion:

Output when ran:

-
Why you use "Call function in several threads"?
If you use it for increasing global or local variable
it will probably increase just once, since its just ONE
function call - so it works as expectedUse "Thread number" instead and set it to number you need.
Than increasing of number should work fine. -
@GaG said in Global Variable is not increasing on each new thread:
Why you use "Call function in several threads"?
If you use it for increasing global or local variable
it will probably increase just once, since its just ONE
function call - so it works as expectedUse "Thread number" instead and set it to number you need.
Than increasing of number should work fine.Thanks for your reply. I attempted to increase thread number at the top, and just calling the function in each thread. However, no luck.
So I guess, for some reason, my brain is blocking logic; are you referring to:

-
Set global variable as function with option "OnAplicationStart"
That way it will set starting number only once.In your current code it resets to starting value on every thread execution.
Maybe it was the case even with "Call function in several threads", test it.
