# Please help! Global variables in ios? possible alternatives?

**URL:** <https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, variables, ios, help\
**Created:** [March 1, 2018, 6:32pm UTC](https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368 "2018-03-01T18:32:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethan\_Da\_Silva-Pinto](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Ethan\_Da\_Silva-Pinto](https://community.thunkable.com/u/Ethan_Da_Silva-Pinto)\
**Post date:** [March 1, 2018, 6:32pm UTC](https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368/1 "2018-03-01T18:32:05Z")

</div>

Hello I am a new Thunkable ios user and I have run into an issue with the survey I am making in my app.  
the survey takes place on different screens and depending on your answer your score goes up. your score is a variable and we need a way to use that variable throughout different screens while keeping the same value and adding on each time like a global variable. Can i do this in ios?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [March 1, 2018, 6:45pm UTC](https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368/2 "2018-03-01T18:45:00Z")

</div>

Hi @Ethan_Da_Silva-Pinto,

welcome to the Thunkable community!

You could try doing something like this with the `Local Storage` component:  
 ![16](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/a/a8d102066a0028acc0a75c1b9ea6f2b313e3dcde.png)

---

<div class="post-metadata">

**Author:** ![Ethan\_Da\_Silva-Pinto](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Ethan\_Da\_Silva-Pinto](https://community.thunkable.com/u/Ethan_Da_Silva-Pinto)\
**Post date:** [March 1, 2018, 7:44pm UTC](https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368/3 "2018-03-01T19:44:02Z")

</div>

thank you, i figured it out earlier.

---

<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:04pm UTC](https://community.thunkable.com/t/please-help-global-variables-in-ios-possible-alternatives/18368/4 "2024-11-08T12:04:24Z")

</div>


