# add school grades

**URL:** <https://community.thunkable.com/t/add-school-grades/265841>\
**Category:** Questions about Thunkable X\
**Created:** [October 10, 2019, 8:47am UTC](https://community.thunkable.com/t/add-school-grades/265841 "2019-10-10T08:47:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![barbosadantasvpj](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@barbosadantasvpj](https://community.thunkable.com/u/barbosadantasvpj)\
**Post date:** [October 10, 2019, 8:47am UTC](https://community.thunkable.com/t/add-school-grades/265841/1 "2019-10-10T08:47:36Z")

</div>

hello, i’m doing an app to calculate school grades so that you put in each insert text the grade you got in a bimester and show on a label the sum of the grades without having to click any buttons, the way i’m trying it’s not working. could someone please help me?

 ![thunkable%20blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b881d56835967f4d5085d76d3f87f4c740cf0b51.png) ![thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/5087b633cc50f0139cca663bd7a409a99d11b618.png)

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [October 10, 2019, 11:06am UTC](https://community.thunkable.com/t/add-school-grades/265841/2 "2019-10-10T11:06:59Z")

</div>

Where is the ‘resultado porto’ label on your Screen?  
Are you typing a plain number in to the Text Input like “60”, or are you typing something like “60%”?

Jane

---

<div class="post-metadata">

**Author:** ![barbosadantasvpj](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@barbosadantasvpj](https://community.thunkable.com/u/barbosadantasvpj)\
**Post date:** [October 22, 2019, 4:51pm UTC](https://community.thunkable.com/t/add-school-grades/265841/3 "2019-10-22T16:51:10Z")

</div>

The label does not appear on the image but it is after 4 text input. The numbers I am trying for are simple example “60”. thanks  
Joao Vitor

---

<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:** [October 22, 2019, 10:53pm UTC](https://community.thunkable.com/t/add-school-grades/265841/4 "2019-10-22T22:53:26Z")

</div>

hi @barbosadantasvpj,

I tried this in my app and didn’t have any issues with it. The calculation was performed and the value was returned correctly.

 ![calcualte%20grade](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/938b158ea77b3cfe2881206236bf582f3270bc79.png)

I’ve used the exact same blocks that you have (as far as I can see anyway!)

 ![49](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d4aa5ad15657fe8517efe4a22d40feb8c7a41c33.png)

---

<div class="post-metadata">

**Author:** ![barbosadantasvpj](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@barbosadantasvpj](https://community.thunkable.com/u/barbosadantasvpj)\
**Post date:** [November 5, 2019, 4:41pm UTC](https://community.thunkable.com/t/add-school-grades/265841/5 "2019-11-05T16:41:03Z")

</div>

> [@domhnallohanlon](#):
>
> I tried this in my app and didn’t have any issues with it. The calculation was performed and the value was returned correctly.

but your only works if the 4 numbers is not mine it will be filled gradually or most of the time will not have all four numbers then it does not add the others that have

---

<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:** [November 5, 2019, 4:49pm UTC](https://community.thunkable.com/t/add-school-grades/265841/6 "2019-11-05T16:49:35Z")

</div>

Ahhh…now I understand @barbosadantasvpj

So you question is how should you handle empty TextInputs when making calculations…correct?

Are you just adding the grades ( in which case it’s ok to substitute in a 0) or do you also need to average the grades (in which case there’s a need to exclude the empty grades) ?

Thanks

---

<div class="post-metadata">

**Author:** ![barbosadantasvpj](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@barbosadantasvpj](https://community.thunkable.com/u/barbosadantasvpj)\
**Post date:** [November 6, 2019, 10:24pm UTC](https://community.thunkable.com/t/add-school-grades/265841/7 "2019-11-06T22:24:40Z")

</div>

I am just adding smoothly the value 0. Don’t need the average.  
tanks

---

<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, 12:08pm UTC](https://community.thunkable.com/t/add-school-grades/265841/8 "2024-11-08T12:08:24Z")

</div>


