# Is it posible to make a negative number red and a positive number green in some vof my labels

**URL:** https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723
**Category:** Questions about Thunkable X
**Created:** [May 19, 2023, 4:52pm UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723 "2023-05-19T16:52:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [May 19, 2023, 4:52pm UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/1 "2023-05-19T16:52:38Z")

</div>

Need info and help on making negative number red and positive number green this is how i do have this in my blocks

 ![Screenshot_16](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/e/aeb9dcca43dcf1fbcdcd7766de6ce5e72b67e878.png)

---

<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: [May 19, 2023, 6:04pm UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/2 "2023-05-19T18:04:26Z")

</div>

You’ll need to use an if/else block and check to see if the number is \>0, \<0, or 0 and then set the label’s text color to red or green. If you get a stuck, post a screenshot of the blocks you’ve tried for that.

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [May 20, 2023, 4:33am UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/5 "2023-05-20T04:33:41Z")

</div>

I have treid this two, but it only show the green. the - (negative) must be red and (positve) must be green

 ![Screenshot_21](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a368bb72856a0c0d80b36ebfef7b827aae4bfaa3.png)  
 ![Screenshot_20](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/6/c6b30b61db06235192eb9d9ecfcacdbeca68e3ce.png)

---

<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: [May 20, 2023, 6:31am UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/6 "2023-05-20T06:31:57Z")

</div>

The `app variable numberValue` block is _already_ a variable. You don’t need to put an `app variable` block in front of it. That causes a problem because then Thunkable is looking for a variable with the name of the variable’s value. So if `app variable numberValue` is 6, for example, then you’re telling Thunkable to get the variable called “6”. Remove this block:

 ![Screenshot 2023-05-19 at 11.25.40 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6edc5db8d1d178ecac1e0c2746a64a8e1c252f96.png)

This is wrong in a number of ways so I would use the same method as above (without the extra block):

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

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [May 21, 2023, 11:20am UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/7 "2023-05-21T11:20:15Z")

</div>

Thank you

---

<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: [August 19, 2023, 11:21am UTC](https://community.thunkable.com/t/is-it-posible-to-make-a-negative-number-red-and-a-positive-number-green-in-some-vof-my-labels/2426723/8 "2023-08-19T11:21:01Z")

</div>

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