# How to initialize variables and constants?

**URL:** <https://community.thunkable.com/t/how-to-initialize-variables-and-constants/7744>\
**Category:** Questions about Thunkable X\
**Created:** [September 17, 2017, 3:17pm UTC](https://community.thunkable.com/t/how-to-initialize-variables-and-constants/7744 "2017-09-17T15:17:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiziano1960](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tiziano1960/32/3823_2.png) [@Tiziano1960](https://community.thunkable.com/u/Tiziano1960)\
**Post date:** [September 17, 2017, 3:17pm UTC](https://community.thunkable.com/t/how-to-initialize-variables-and-constants/7744/1 "2017-09-17T15:17:36Z")

</div>

In this example I need the variable onOff ready with a value set at the app start but I cannot find a method like Screen.Initialize in Android…

 ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/f/fcb5eaa84f94bb5baf0d1c678fd09e95c856c761.JPG)

---

<div class="post-metadata">

**Author:** ![albert](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/albert/32/4077_2.png) [@albert](https://community.thunkable.com/u/albert)\
**Post date:** [September 18, 2017, 6:10pm UTC](https://community.thunkable.com/t/how-to-initialize-variables-and-constants/7744/2 "2017-09-18T18:10:55Z")

</div>

Hi there. Thanks for this feedback – adding this to our list of to-do’s. Albert @ Thunkable

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:06pm UTC](https://community.thunkable.com/t/how-to-initialize-variables-and-constants/7744/3 "2024-11-08T12:06:14Z")

</div>


