For loop before Switch on int ?

Why is unreal not allowing ‘for loop’ to execute before ‘Switch on int’ node? it can be really useful for me. if i connect the for loop execute pint to switch on int, and the for loop’s index to the integer select, its only called once. (for loop has multiple loops to do, and it is working if connect to something else just for testing)

Is there a way to allow this to work ?
I can use sequence but its much less elegant and harder to expand without the integer control

This function will be called once to spawn and set stuff, its not for real time logic

(post deleted by author)

It should still work, I imagine what might be happening based on the post is that you should be using another for loop within your for loop.

Here’s how it is going to work based on your set up.
For loop starts → hits switch statement and does the first thing in the switch statement → loops → hits second thing in switch statement → loops → hits 3rd thing in switch statement

so only 1 thing in your switch statement is getting hit once per loop

based on what you said I think you want it work like this:
for loop starts → hits everything in the “switch” (which should actually be a loop) → loops → hits everything in the loop → loop → etc.

Does this sound correct? If so you want a for loop within a for loop, not a switch.

Otherwise, if you do want the switch statement in there, I would make sure that you are not hitting the default pin. Also please send a picture and intended behavior if this does not fix it.

yes correct, there is another loop after the switch. if i disconnect the loop after the switch it will work now as you said.

Will my case work in C++ tho? (without applying your suggestion yet)