# Reading from the Array in Niagara

**URL:** <https://forums.unrealengine.com/t/reading-from-the-array-in-niagara/1219918>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint, UMG\
**Created:** [July 5, 2023, 8:09am UTC](https://forums.unrealengine.com/t/reading-from-the-array-in-niagara/1219918 "2023-07-05T08:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesART](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesART](https://forums.unrealengine.com/u/DesART)\
**Post date:** [July 5, 2023, 8:09am UTC](https://forums.unrealengine.com/t/reading-from-the-array-in-niagara/1219918/1 "2023-07-05T08:09:56Z")

</div>

![ArrayReading](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/3/9531862cd31beb6b7dff0b0d2cf5d8972c467441.jpeg)  
Hi guys. I need help with reading Arrays in Niagara ScratchPad. I want the specific indexed Object to be Activated during the data flow. I have somehow synchronization issues… I can’t figure out how I can get my specific index to be synchronized with the Execution index. As u can see in the spreadsheet. Maybe I need different approach to check the array. I think I need something like “Is Contain” Function. Sorry, if my explanation is so poor 😅 Thank you

---

<div class="post-metadata">

**Author:** ![DesART](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesART](https://forums.unrealengine.com/u/DesART)\
**Post date:** [July 7, 2023, 5:10am UTC](https://forums.unrealengine.com/t/reading-from-the-array-in-niagara/1219918/2 "2023-07-07T05:10:23Z")

</div>

Hi guys. I solved this problem by directly coding For Loop and the If statement into HLSL. I don’t have much time to explain but I hope it could be helpful for those who will try something similar.

 ![SolutionToArrayIssue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/c/1fcf7ece66b216762c4c629d872035115a1f70e1.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 6, 2023, 5:11am UTC](https://forums.unrealengine.com/t/reading-from-the-array-in-niagara/1219918/3 "2023-08-06T05:11:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
