# dynamic text content binding isnt working with for loop

**URL:** <https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672>\
**Category:** Programming & Scripting\
**Tags:** foreachloop, text, unreal-engine, Array, function, question, Blueprint\
**Created:** [May 22, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672 "2024-05-22T13:12:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HyperGameDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperGameDev](https://forums.unrealengine.com/u/HyperGameDev)\
**Post date:** [May 22, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672/1 "2024-05-22T13:12:32Z")

</div>

I’m working on a code that binds text content to an array of buttons on the settings menu to improve the user interface. When users hover over each button, the `infotitle` is supposed to change accordingly. My goal is to make this process more efficient by using bindings, arrays, and loops.

However, I’m encountering an issue. As shown in the first image, the code is intended to update the `infotitle` text when hovering over each button. But as seen in the second and third images, the `infotitle` text only changes when hovering over the first button in the array. It doesn’t update correctly for the other buttons.

 ![Screenshot 2024-05-22 174325](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/0/c50490d3a61d19509ca24ddd95799097f577cfae.png)  
 ![Screenshot 2024-05-22 174406](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/c/72c2c93feb4c66c89fee72c594e81288274655ed.png)  
 ![Screenshot 2024-05-22 174435](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/2/732a946f825a3f9458c43c914fd7807b121d2d33.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 22, 2024, 1:22pm UTC](https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672/2 "2024-05-22T13:22:00Z")

</div>

The loop returns after the very first iteration. Did you mean to use the `Completed` pin instead?

---

<div class="post-metadata">

**Author:** ![HyperGameDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HyperGameDev](https://forums.unrealengine.com/u/HyperGameDev)\
**Post date:** [May 23, 2024, 5:20am UTC](https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672/3 "2024-05-23T05:20:02Z")

</div>

i just removed the return node connected to branch at false and it worked without any additional changes and can now support large arrays

---

<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:** [June 22, 2024, 5:20am UTC](https://forums.unrealengine.com/t/dynamic-text-content-binding-isnt-working-with-for-loop/1867672/4 "2024-06-22T05:20:13Z")

</div>

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