I was wondering if anyone could suggest what I am doing wrong here?
I am trying to use Else correctly with variables and not succeeding! In this example, I am trying to produce 5 objects at coordinates held in variables and using Else to determine which to use and using 'repeat' to run through a function 5 times to produce the 5 objects.
The function appears to be triggering the object creation more than once in the same repeat, so while the function is repeated five times, many more than five objects are created - often different quantities each time.
I am guessing I am doing something wrong with the way I'm using Else, as it appears the variable condition is being triggered more than once. I had anticipated that the function would end once the first condition was met, but that doesn't seem to be the case and it seems to be triggering again once another condition is met.
If anyone could shed some light onto what I am doing wrong here, I'd be most grateful - and if there's a better way to approach this, I'm all ears :)
I've attached a link to the c3p file - example file