# How to Make an Array from every valid connected pin at a Select Node?

**URL:** <https://forums.unrealengine.com/t/how-to-make-an-array-from-every-valid-connected-pin-at-a-select-node/1931224>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [July 9, 2024, 3:35am UTC](https://forums.unrealengine.com/t/how-to-make-an-array-from-every-valid-connected-pin-at-a-select-node/1931224 "2024-07-09T03:35:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![XxNotAGamerxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxNotAGamerxX](https://forums.unrealengine.com/u/XxNotAGamerxX)\
**Post date:** [July 9, 2024, 7:07am UTC](https://forums.unrealengine.com/t/how-to-make-an-array-from-every-valid-connected-pin-at-a-select-node/1931224/2 "2024-07-09T07:07:40Z")

</div>

I found this incomplete code that seems to make a loop by getting length of Enum.

1. Anyone know how to complete it - what connects to the -1/1 reroute pin?  
 ![UnrealEditor_pHHzndPPhr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/6/f76a5e96e958a0cdc9c47230f3d15524f95a6505.png)

> [@How to properly loop through enumerations](https://forums.unrealengine.com/t/how-to-properly-loop-through-enumerations/333671/6):
>
> I’m used to do that in BP, works well slight_smile

And what did he mean by making an extra (unused index) in the enum?

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-an-array-from-every-valid-connected-pin-at-a-select-node/1931224)._
