# A doubt regarding cloud variables

**URL:** <https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836>\
**Category:** Questions about Thunkable X\
**Created:** [December 28, 2020, 7:17am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836 "2020-12-28T07:17:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 7:17am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/1 "2020-12-28T07:17:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/9/69cc351f024fac0d2d7ca13fbe71405648ed9087.png)  
Hi!  
I’m making an app in the Drag and Drop UI, and was unable to find FIREBASE RTDB, so I had to resort to cloud variables. I have initialized it to room, but have changed it here to room/ from input1 get text. Does this make sense? Would Thunkable recognize this as a name-change of the initialized variable? Sorry if I’m not clear, I’ve not worked with cloud variables. I have used the join block the same way we use keys with the RTDB. I couldn’t initialize the variable with a join block, because there’s no way we can Thunk it in the input for the variable name.  
My app is a hangman app where one user can provide the word, it gets sent to the device of the other user in the same room, and the user has to guess that word, and vice versa. While the hangman part (limbs and setting text) are all done, I’m confused on how to send the word from one user to another.  
Any suggestions would be really helpful!  
Thanks!

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 7:28am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/2 "2020-12-28T07:28:29Z")

</div>

that is all cloud and you can add data base listener and once data changed then it will fire that the data has changed

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 7:29am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/3 "2020-12-28T07:29:05Z")

</div>

> [@v.krishna](#):
>
> data base listener

I don’t think that’s possible with Cloud Variales.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 7:31am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/6 "2020-12-28T07:31:07Z")

</div>

Thanks, but that was not my question. My question was whether Thunkable would recognize my variable even with a join block.

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 7:31am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/7 "2020-12-28T07:31:40Z")

</div>

instead of join use object

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 7:31am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/8 "2020-12-28T07:31:55Z")

</div>

[https://docs.thunkable.com/realtime-db#separating-your-data-into-project-buckets](https://docs.thunkable.com/realtime-db#separating-your-data-into-project-buckets)

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 7:33am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/9 "2020-12-28T07:33:13Z")

</div>

and of course I don’t know how to use object

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 7:37am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/10 "2020-12-28T07:37:26Z")

</div>

I’m sorry, I didn’t get you.

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 7:46am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/13 "2020-12-28T07:46:39Z")

</div>

oh sorry! I am really sorry and I understood this question in a different way and do you simply mean to change the variable’s name when some text was submitted in the input?

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 8:00am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/14 "2020-12-28T08:00:02Z")

</div>

Yes. This is what I want my app to do:

> [@codeswept](#):
>
> My app is a hangman app where one user can provide the word, it gets sent to the device of the other user in the same room, and the user has to guess that word, and vice versa. While the hangman part (limbs and setting text) are all done, I’m confused on how to send the word from one user to another.

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:02am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/15 "2020-12-28T08:02:10Z")

</div>

ok and I found nothing helpful in docs and I think 🤔 it can’t be possible right now and we can’t simply change the variable’s name and I suggest instead of using a cloud variable you can use a google sheet and google sheets were also cloud database-like components only

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 8:02am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/16 "2020-12-28T08:02:48Z")

</div>

> [@v.krishna](#):
>
> google sheet and google sheets were also cloud database-like components only

That is not possible: I’m using the Drag and Drop UI

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:03am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/17 "2020-12-28T08:03:25Z")

</div>

come on it was possible I will give you screenshot too

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:03am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/18 "2020-12-28T08:03:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/015954a3b833d46a501c02f4ed6ca229cf527536.png)

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:04am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/19 "2020-12-28T08:04:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e009b9f7bf78d7466daec832a8f82bc441abf64d.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 8:05am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/20 "2020-12-28T08:05:22Z")

</div>

Thank you very much! Let me try this

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:05am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/21 "2020-12-28T08:05:54Z")

</div>

oh! sure

Happy Thunking!

---

<div class="post-metadata">

**Author:** ![v.krishna](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/v.krishna/32/84811_2.png) [@v.krishna](https://community.thunkable.com/u/v.krishna)\
**Post date:** [December 28, 2020, 8:08am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/22 "2020-12-28T08:08:06Z")

</div>

Please mark the solution

---

<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:** [December 28, 2020, 8:08am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/23 "2020-12-28T08:08:20Z")

</div>

You can use any values including variables, text input fields, text strings, etc. within a cloud variable name. If the cloud variable exists in Firebase, it will update the value to whatever you put in the last puzzle piece (currently blank in your screenshot). If it doesn’t exist, it will create the variable and set its value.

Take a look at your firebase console’s realtime database before and after running a set of blocks like that.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 28, 2020, 8:10am UTC](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836/24 "2020-12-28T08:10:16Z")

</div>

Thanks! Does that work just like a key, then?

[Next page](https://community.thunkable.com/t/a-doubt-regarding-cloud-variables/1041836.md?page=2)
