# Why does my variable say null when I add values together?

**URL:** <https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, spreadsheets, math, airtable\
**Created:** [August 15, 2022, 8:14pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597 "2022-08-15T20:14:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [August 15, 2022, 8:14pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/1 "2022-08-15T20:14:45Z")

</div>

My quiz app compares answer entered by users to what I have saved as the Correct answer on the Airtable Spreadsheet,so if it matches,each of the answers Variables will be set to (5),else to (0),so it’s a 3 questions weekly quiz session from the App.  
So at the click of the SUBMIT Button it sums up all values in the Variables and then set a TOTAL variable to the result gotten from all Answers Variables and then upload it to the Airtable Spreadsheet.  
Here is the link to the sample app below, thanks in advance guys  
[https://x.thunkable.com/copy/90868c5fd21f000d118e6206fab13190](https://x.thunkable.com/copy/90868c5fd21f000d118e6206fab13190)

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 15, 2022, 9:00pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/2 "2022-08-15T21:00:04Z")

</div>

Whats the issue you are facing? What have you tried? Which variables returns null? Have you tried de-bugging and seeing if you are able to retrieve the correct answer from airtable?

---

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [August 16, 2022, 5:13am UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/3 "2022-08-16T05:13:27Z")

</div>

This is what ive tried so far

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/f/9f35e957bdb9005d7f59c166873debdec0c78ec3.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:** [August 16, 2022, 5:57am UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/4 "2022-08-16T05:57:51Z")

</div>

When you click the submit button, what does Label-RANKS show?

If that shows null, then the problem is with your `get property of object` block. How have you checked to make sure that the property you are getting is a valid value? One way to do this is to change the value of a label’s text to the `get property of object` block and watch to see what values appear during the loop.

---

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [August 16, 2022, 7:00am UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/5 "2022-08-16T07:00:48Z")

</div>

Ok I will try that out, thanks

---

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [August 19, 2022, 2:52pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/6 "2022-08-19T14:52:50Z")

</div>

I’ve done what you asked but still getting same result,the values are not adding up as expected

---

<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:** [August 20, 2022, 1:00am UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/7 "2022-08-20T01:00:57Z")

</div>

I’m not sure how to help you because you haven’t answered my questions. Without specifics, it’s not enough to tell me “the values are not adding up as expected.”

---

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [August 20, 2022, 4:15am UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/8 "2022-08-20T04:15:46Z")

</div>

I’ve set the label to be (5) if the Property of get values=the Answer ,and that works,  
Once again what I want is,if the get property equals the Answers entered by user I want the variable1 value to be 5marks and so the variable2& variable3, else 0marks,  
And when the button is clicked the Total mark scored should be added to the spreadsheet.

---

<div class="post-metadata">

**Author:** ![versatile](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@versatile](https://community.thunkable.com/u/versatile)\
**Post date:** [September 2, 2022, 1:05pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/9 "2022-09-02T13:05:04Z")

</div>

Can anyone please help on this,I’ve done all I could.  
What I simply want is,the total scored points should be sent to the Airtable’creating a row object.  
This will be possible by comparing answer set on the spreadsheet and the answered by the user in the app

---

<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:** [December 1, 2022, 1:05pm UTC](https://community.thunkable.com/t/why-does-my-variable-say-null-when-i-add-values-together/2000597/10 "2022-12-01T13:05:22Z")

</div>

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