# I cant get the variables to return after widget

**URL:** <https://forums.unrealengine.com/t/i-cant-get-the-variables-to-return-after-widget/434732>\
**Category:** UI\
**Tags:** variables, value, return, unreal-engine, Widget, question\
**Created:** [September 29, 2018, 11:39pm UTC](https://forums.unrealengine.com/t/i-cant-get-the-variables-to-return-after-widget/434732 "2018-09-29T23:39:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XXpoomaanXX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XXpoomaanXX](https://forums.unrealengine.com/u/XXpoomaanXX)\
**Post date:** [September 29, 2018, 11:39pm UTC](https://forums.unrealengine.com/t/i-cant-get-the-variables-to-return-after-widget/434732/1 "2018-09-29T23:39:37Z")

</div>

I checked a lot of tutorials and questions posted on this website and tried most of them, but I cannot get the widget to return the value of the boolean variable

 ![255043-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/c/75c49d4aad3ebb7a8014ea11a819b479ba58ea30.png)

Here I want the widget to run and return the processed value of ‘destroy’ variable from the widget.  
The value gets changed in widget, I have confirmed that part.  
please, somebody, tell me what I am doing wrong asap  
thank you  
PS: I am very new to unreal so explain to me if I were 5

 ![255044-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/1/fe19ca9657932b1b3d089d3c4c4cce6a05543ec7.jpeg)

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [September 30, 2018, 2:27pm UTC](https://forums.unrealengine.com/t/i-cant-get-the-variables-to-return-after-widget/434732/2 "2018-09-30T14:27:06Z")

</div>

i would guess that your issue here is that you are destroying the widget before trying to get the value stored within it. what i would do is to set a reference to the actor that created the widget within the widget then before you destroy the widget you can set a variable in the actor or call an event. of course this would be if you werent working in the level bp. i would suggest another method but im not sure what your aim here is or what your blueprints are meant to accomplish since i only have access to a small snippet.

> explain to me if I were 5

if you were 5 my reply would be that your in over your head and should go back to watching sesame street. though judging by your name maybe you are just a kid.
