# Looping on a specific bolean within different instances of a widget.

**URL:** <https://forums.unrealengine.com/t/looping-on-a-specific-bolean-within-different-instances-of-a-widget/223895>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 2, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/looping-on-a-specific-bolean-within-different-instances-of-a-widget/223895 "2020-11-02T18:11:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IlliciteS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IlliciteS](https://forums.unrealengine.com/u/IlliciteS)\
**Post date:** [November 2, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/looping-on-a-specific-bolean-within-different-instances-of-a-widget/223895/1 "2020-11-02T18:11:33Z")

</div>

Hi,

The title is weird but my problem is actually simple to picture. Let’s imagine a Skyrim menu.  
1 - You press tab, you go a first widget with Skill / Inventory / Map / Magic choices.  
2 - You choose Skills, wich brings you to a second widget where you have all your skills (1st picture).  
3 - You chose a skill which leads you to all the perks you can choose (2nd picture).

At that point, so far so good, I can select a perk, the “Acquired” bolean is now ticked, its color changes, etc.

But then, I close the menu because I want to play. Closing the menu equals to a Remove from parent for “optimisation reason” (I don’t know it is a nice way to do it tho). And the next time I will open the menu, it will all build from scratch, and everything I have selected will be lost.

So I guess I should store all the boleans from all those perks inside the Character Blueprint and the next time I will open the menu, it will check if the Acquired bolean is ticked and build everything accordingly.

But what would be the best way to do that considering that I might have 10 skill trees in 10 different widgets, and each skill tree would have 10 different perks ? I can’t imagine to check them one by one.  
Array, dictionnary, datatable…?

Perhaps I am going in the wrong direction anyway, if so, please let me know (and how to fix that).
