# Colors in stored variables

**URL:** https://community.thunkable.com/t/colors-in-stored-variables/2602843
**Category:** Questions about Thunkable X
**Tags:** beginner, help
**Created:** [September 19, 2023, 9:45am UTC](https://community.thunkable.com/t/colors-in-stored-variables/2602843 "2023-09-19T09:45:06Z")
**Posts on this page:** 1
**Showing post:** 8

<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: [September 21, 2023, 1:12pm UTC](https://community.thunkable.com/t/colors-in-stored-variables/2602843/8 "2023-09-21T13:12:04Z")

</div>

> [@frederikdeclercq44o1](#):
>
> Sometimes I have to click more then once to change the color? Sometimes 3x sometimes 2x …

Sure, that makes sense, you’re randomly drawing from a list of 2 items. It’s just like flipping a coin, you might get 3 heads in a row, you might get 100 in a row, but on average it will flip back and forth every couple of clicks/flips

I only used the random colours for illustration purposes @frederikdeclercq44o1, in your case are you trying to make a toggle button, is that right?

> [@Creating a Toggle in Thunkable](https://community.thunkable.com/t/creating-a-toggle-in-thunkable/53574):
>
> You can create an on/off switch, also known as a toggle switch, in your app with a variety of different components and blocks in Thunkable X. Switch The [switch](https://docs.thunkable.com/thunkable-cross-platform/create/components/user-interface/switch) component is probably the easiest to get started with. When the switch is clicked, the value changes. The newValue variable is either true or false, depending on whether the switch is on or off. In this example, a [label](https://docs.thunkable.com/thunkable-cross-platform/create/components/user-interface/label) is used to display the words “On” or “Off” depending on the position of the string. [05] [Click to remix the “Toggl”…](https://x.thunkable.com/copy/22cb09b96dffc0d557d5feab3e481ffe)

---

_[View the full topic](https://community.thunkable.com/t/colors-in-stored-variables/2602843)._
