best way to switch between input arrays during processing

hi
what is the best way to switch between input arrays during processing
based on execution, and during processing, the input array the blueprint or macro must use may be either array A or array B

in c, one would simply pass a pointer to the appropriate array, and handle it like that?

in the case of unreal and a blueprint, what would be the way to do it?

thanks

Use Select node:
image

nice. thanks. is there a way to make it int instead of boolean
like a switch on int istead of branch

Of course, when creating a node you can choose the index type.

1 Like