# Can you create a variable with the set block?

**URL:** <https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774>\
**Category:** Questions about Thunkable X\
**Created:** [November 22, 2021, 4:34am UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774 "2021-11-22T04:34:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![josiah](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiah/32/103902_2.png) [@josiah](https://community.thunkable.com/u/josiah)\
**Post date:** [November 22, 2021, 4:34am UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/1 "2021-11-22T04:34:57Z")

</div>

I was wanting to add users without firebase (because I can’t get one of the keys) with the set block to make a variable for the user but when testing login button it doesn’t seem to continue. Did it get created? That was my first question. Maybe it’s not. Can you create one?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 22, 2021, 4:37am UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/2 "2021-11-22T04:37:32Z")

</div>

Explanation not clear.  
Please show your blocks and what you tried so far.

---

<div class="post-metadata">

**Author:** ![josiah](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiah/32/103902_2.png) [@josiah](https://community.thunkable.com/u/josiah)\
**Post date:** [November 22, 2021, 4:48am UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/3 "2021-11-22T04:48:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87d1265432b19725d738e5c372c5510e759107b9.jpeg)

These are my blocks.  
I have no things I have tried from there.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 22, 2021, 4:53am UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/4 "2021-11-22T04:53:15Z")

</div>

Cloud variables are saved to Firebase. If you don’t want to use Firebase then you could use _stored_ variables or a local data source. They are both saved to the mobile device.

> **[Variables](https://docs.thunkable.com/variables)**

But if you want your users to sign in to a Thunkable app, then you really should use Firebase.

---

<div class="post-metadata">

**Author:** ![josiah](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiah/32/103902_2.png) [@josiah](https://community.thunkable.com/u/josiah)\
**Post date:** [November 25, 2021, 5:28pm UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/5 "2021-11-25T17:28:05Z")

</div>

I fixed the explanation of the firebase “I can’t” thing.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 25, 2021, 5:33pm UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/6 "2021-11-25T17:33:10Z")

</div>

Even if you do not want to use `Firebase` the `cloud variable` will save your data in Firebase so for your code blocks to work, you will need a firebase database and you will need to supply the API key and Database URL in the project settings for your code to run properly.

---

<div class="post-metadata">

**Author:** ![josiah](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiah/32/103902_2.png) [@josiah](https://community.thunkable.com/u/josiah)\
**Post date:** [November 25, 2021, 9:33pm UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/7 "2021-11-25T21:33:27Z")

</div>

I added it now, but still won’t work. It showed my error message

---

<div class="post-metadata">

**Author:** ![josiah](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/josiah/32/103902_2.png) [@josiah](https://community.thunkable.com/u/josiah)\
**Post date:** [November 25, 2021, 9:36pm UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/8 "2021-11-25T21:36:54Z")

</div>

Using **stored** until solution found

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [February 23, 2022, 9:37pm UTC](https://community.thunkable.com/t/can-you-create-a-variable-with-the-set-block/1627774/9 "2022-02-23T21:37:20Z")

</div>

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