# How do i assign a result as "x" and use it in an equation?

**URL:** https://community.thunkable.com/t/how-do-i-assign-a-result-as-x-and-use-it-in-an-equation/3181083
**Category:** Questions about Thunkable X
**Created:** [September 6, 2024, 9:55am UTC](https://community.thunkable.com/t/how-do-i-assign-a-result-as-x-and-use-it-in-an-equation/3181083 "2024-09-06T09:55:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aswinchandrasekharan](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aswinchandrasekharan](https://community.thunkable.com/u/aswinchandrasekharan)
#### Post date: [September 6, 2024, 9:55am UTC](https://community.thunkable.com/t/how-do-i-assign-a-result-as-x-and-use-it-in-an-equation/3181083/1 "2024-09-06T09:55:51Z")

</div>

Hi i am new to this and is stuck with a problem. I have setup a simple.fuel log calculator which calculates the discrepancy from a set of amount of fuel and sg etc which will be entered by the user. Now the discrepancy will be calculated and shown ive got that much working. My problem is i need to also assign this discrepancy as “x” and put in an equation to show a message if it is above a certain limit. How do i assign this “x” and put in my equation to use in a “if” logic to display the message? Please help

---

<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: [September 6, 2024, 2:29pm UTC](https://community.thunkable.com/t/how-do-i-assign-a-result-as-x-and-use-it-in-an-equation/3181083/2 "2024-09-06T14:29:06Z")

</div>

You can learn about storing values in variables [here](https://docs.thunkable.com/blocks/blocks/variables-overview/variables). And then about conditionals [here](https://docs.thunkable.com/blocks/blocks/logic).

·····················································································································  
Need help? [How to Ask Great Questions](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983) ✨ [Debugging A Project](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471) ✨ [API JSON Tutorial](https://community.thunkable.com/t/api-json-tutorial-video/1140575)

---

<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 5, 2024, 2:29pm UTC](https://community.thunkable.com/t/how-do-i-assign-a-result-as-x-and-use-it-in-an-equation/3181083/3 "2024-12-05T14:29:27Z")

</div>

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