# Color coding stored variables

**URL:** https://community.thunkable.com/t/color-coding-stored-variables/3444761
**Category:** Questions about Thunkable X
**Tags:** stored-variable
**Created:** [January 2, 2025, 8:13am UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761 "2025-01-02T08:13:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![terryd0612lmp1i7](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@terryd0612lmp1i7](https://community.thunkable.com/u/terryd0612lmp1i7)
#### Post date: [January 2, 2025, 8:13am UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761/1 "2025-01-02T08:13:22Z")

</div>

I have many stored variables. each one is a piece of text, and each one has colored text. some matching, some not. how do i sort each stored variable into lists based on text color assigned to the variable?

for example, i want a blue list, a green list, black list, etc.

how do i make it so if i change the text color of a variable, itll automatically add itself to the appropriate list?

---

<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: [January 2, 2025, 8:39am UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761/2 "2025-01-02T08:39:57Z")

</div>

I’m not sure I understand what you’re wanting to do. Can you give a more detailed example, possibly with a screenshot or sketch?

What do you mean by “each [variable] has colored text”? Are you assigning a color value (e.g. color thumbnail or RGB value) to the variables?

You can’t sort variables but you could save a sorted list as a _stored_ variable. But you would need to create the sort… I don’t know of a way to sort colors within Thunkable. You’re pretty much limited to alphanumeric sorting. You could potentially use the [Javascript Web Bridge](https://docs.thunkable.com/blocks/advanced-app-features/javascript-web-bridge) to do that. ChatGPT or other LLMs might be able to create the script you need. It’s a bit more involved though!

Sometimes knowing the larger context for something helps with possible solutions. Why are you needing to sort color values?

---

<div class="post-metadata">

### Author: ![terryd0612lmp1i7](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@terryd0612lmp1i7](https://community.thunkable.com/u/terryd0612lmp1i7)
#### Post date: [January 2, 2025, 8:58am UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761/3 "2025-01-02T08:58:50Z")

</div>

to simplify as much as possible, users will rate the difficulty of numerous tasks. each difficulty changes the text color of the task to a color assigned to that difficulty. for example. super hard=red. now i want to be able to open a page with JUST the reds or JUST the greens

---

<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: [January 2, 2025, 6:43pm UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761/4 "2025-01-02T18:43:18Z")

</div>

The ability to filter a data source is a relatively new feature so there doesn’t seem to be much documentation but you can start with this: [Data Sources Blocks | Thunkable Docs](https://docs.thunkable.com/blocks/app-features/data-sources-blocks#filter).

Using that block, you can change the current filter view of a table. So if you saved your data as a local data source, for example, and had a column called Color, you could set the filter to use Color=“red” to get only rows of data with those Color values.

---

<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: [April 2, 2025, 6:43pm UTC](https://community.thunkable.com/t/color-coding-stored-variables/3444761/5 "2025-04-02T18:43:39Z")

</div>

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