# Creating a level up system

**URL:** <https://community.thunkable.com/t/creating-a-level-up-system/1181788>\
**Category:** Questions about Thunkable X\
**Created:** [March 23, 2021, 2:40am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788 "2021-03-23T02:40:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [March 23, 2021, 2:40am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/1 "2021-03-23T02:40:26Z")

</div>

Trying to create a basic level up system but greater than function seems not to be working. The LEVEL Label goes up even when not greater than the CURRENT EXP Label. Bad coding or bug maybe?

[Thunkable](https://x.thunkable.com/projects/605947831c277f001100bd55/9128d8f4-7d72-4402-8a4e-6064469941ff/) ![blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6be407898c3a743885901c3d2d4494e9459c55ee.png) ![design](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/2/5222e74f92d9a6747f6a81b5282930f05bcbaccc.png)

---

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [March 23, 2021, 2:54am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/2 "2021-03-23T02:54:53Z")

</div>

Instead of using `label's text` try using variables

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [March 23, 2021, 3:00am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/3 "2021-03-23T03:00:34Z")

</div>

I started with variables and had the same issue, so I simplified it like this to see what was happening.

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [March 23, 2021, 3:12am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/4 "2021-03-23T03:12:43Z")

</div>

Okay the variables seem to be working now

---

<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:** [March 23, 2021, 6:08am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/5 "2021-03-23T06:08:27Z")

</div>

@Garry_Lane hard to say without seeing your component tree here too, but is there a difference between your lvl label and the lvl value? (And exp label/exp value?)

---

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [March 23, 2021, 6:32am UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/6 "2021-03-23T06:32:42Z")

</div>

Take the value from the label and multiply it by one. So it will become a number and the logic will work.

---

<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:** [March 23, 2021, 2:55pm UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/7 "2021-03-23T14:55:10Z")

</div>

@Garry_Lane you are trying to compare text to text and therefore the system will check character by character. For example, comparing text will result in “20” is greater than “100” because “2” is greater than “1”. The system will only compare the second character if the first character does not satisfy the condition.

To compare the values in text labels you need to convert them first to numbers then compare them so you have to add 0 to both sides of the valuation condition to be treated as numbers.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/creating-a-level-up-system/1181788/8 "2024-11-08T13:25:46Z")

</div>


