# \[FeatureRequest\] IsValidIndex for Array in blueprints

**URL:** <https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451>\
**Category:** Editor Scripting\
**Tags:** arrays, unreal-engine, FeatureRequest, Array, question\
**Created:** [April 17, 2016, 9:28am UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451 "2016-04-17T09:28:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [April 17, 2016, 9:28am UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451/1 "2016-04-17T09:28:16Z")

</div>

I have a very simple request to add the function IsValidIndex for Arrays in blueprints. Currently i am doing it over every time, and its quite easy to make mistakes with \>= etc…

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [April 17, 2016, 2:10pm UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451/2 "2016-04-17T14:10:14Z")

</div>

Good call, added a pull request for the node:

[https://github.com/EpicGames/UnrealEngine/pull/2289](https://github.com/EpicGames/UnrealEngine/pull/2289)

Cheers!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [April 17, 2016, 4:52pm UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451/3 "2016-04-17T16:52:07Z")

</div>

Great! Lets hope they accept it soon, its a very easy addition, but very useful.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [April 17, 2016, 4:56pm UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451/4 "2016-04-17T16:56:33Z")

</div>

😃 Yeah, also, if you accept an answer here, you need to do that AFTER commenting. Otherwise you unaccept it with the comment, hehe (:

---

<div class="post-metadata">

**Author:** ![ryanjon2040](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjon2040/32/906587_2.png) [@ryanjon2040](https://forums.unrealengine.com/u/ryanjon2040)\
**Post date:** [April 18, 2016, 5:55am UTC](https://forums.unrealengine.com/t/featurerequest-isvalidindex-for-array-in-blueprints/354451/5 "2016-04-18T05:55:29Z")

</div>

In the meantime you can create a Macro Library (from Object class) and add this graph. You can then use this in all your Blueprints.

 ![87278-isvalidmacro.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/0/4b0f66eab7bd214c557910bced2c3749aa21c644.png)

Example usage:

![87279-isvalidmacro_usage.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/2/202eedc6125f33784a4755d909ba8ade538832df.png)
