# How to create a cloud variable listener for a sub-bucket?

**URL:** <https://community.thunkable.com/t/how-to-create-a-cloud-variable-listener-for-a-sub-bucket/2140238>\
**Category:** Questions about Thunkable X\
**Created:** [November 20, 2022, 7:08pm UTC](https://community.thunkable.com/t/how-to-create-a-cloud-variable-listener-for-a-sub-bucket/2140238 "2022-11-20T19:08:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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, 2022, 11:29am UTC](https://community.thunkable.com/t/how-to-create-a-cloud-variable-listener-for-a-sub-bucket/2140238/2 "2022-11-22T11:29:06Z")

</div>

Can you explain by giving an example?

There are two different types of each of the variable classes. Cloud variables can be static (design time) or dynamic (run time)

Static variables can be declared as follows:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aae6a20542f47a2d899f89fae2a308bb04207b5e.png)

Dynamic variables can be used as part of the code, like this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c4438430d64fd1c02aa1c1f7db770270fff3b39c.png)

or check the value like this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa2e91133997acc7de90c1001d0b051d02ecd6c1.png)

I’m not sure if this answers your question but I thought it is nice to know

---

_[View the full topic](https://community.thunkable.com/t/how-to-create-a-cloud-variable-listener-for-a-sub-bucket/2140238)._
