# How can I show the result of the calculation in screen2, if the input data are in screen 1?

**URL:** <https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535>\
**Category:** Questions about Thunkable X\
**Created:** [November 8, 2018, 6:11am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535 "2018-11-08T06:11:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kraftgirl](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kraftgirl](https://community.thunkable.com/u/kraftgirl)\
**Post date:** [November 8, 2018, 6:11am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/1 "2018-11-08T06:11:25Z")

</div>

I’m creating a mathematics application. There are many variables and data, so I would like to set the screen 1 for them. Then the result of the calculation will be shown on screen 2. Please advice and show me for the example.

---

<div class="post-metadata">

**Author:** ![Nice\_kode4](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nice_kode4/32/4180_2.png) [@Nice\_kode4](https://community.thunkable.com/u/Nice_kode4)\
**Post date:** [November 8, 2018, 6:24am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/2 "2018-11-08T06:24:50Z")

</div>

[https://youtu.be/XpB2qTy3Rb0](https://youtu.be/XpB2qTy3Rb0) watch this 🙂

-Philip

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 8, 2018, 7:02am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/3 "2018-11-08T07:02:26Z")

</div>

To get started, put on the screen a little data and make an application with them. Can you draw what should be on screen 1 and screen 2 after the calculations? I have a great thought, but I need to see what you want to do.

---

<div class="post-metadata">

**Author:** ![kraftgirl](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kraftgirl](https://community.thunkable.com/u/kraftgirl)\
**Post date:** [November 8, 2018, 7:40am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/4 "2018-11-08T07:40:28Z")

</div>

Hi actech

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fabe854d490eac15493fa6a54a59fe70b52d4641.png)  
This is an example. Actually, there are about 10 data for input on screen 1 and result of 7 equations to show on screen 2.  
Some equation also needs the value from the spreadsheet.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 8, 2018, 7:49am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/5 "2018-11-08T07:49:16Z")

</div>

On screen 1, you create 10 input fields, 10 global variables of type “app”, a block for receiving data from the SpreadSheet, and a Calculate button.

In the event handler of the Calculate button, you need to assign the values ​​of all 10 input fields to 10 global variables and then go to screen 2 (you can use the Stack type navigator).

When displaying screen 2, you need to make blocks of expressions using global variables that already contain the field values ​​and data from the SpreadSheet. After that, display the result of the calculations on the screen using Labels.

Do you understand this approximate algorithm?

---

<div class="post-metadata">

**Author:** ![kraftgirl](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kraftgirl](https://community.thunkable.com/u/kraftgirl)\
**Post date:** [November 8, 2018, 8:13am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/6 "2018-11-08T08:13:59Z")

</div>

Thank you for your advice.  
I don’t know how to use stack type navigator.  
Could you please show the example.

---

<div class="post-metadata">

**Author:** ![kraftgirl](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kraftgirl](https://community.thunkable.com/u/kraftgirl)\
**Post date:** [November 8, 2018, 8:36am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/7 "2018-11-08T08:36:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/abf04ce9e7442e69756b22fb0d12992d41b817bd.png)  
For global variables, you means I have to use the first block, the initialize variable to, right?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 8, 2018, 8:39am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/8 "2018-11-08T08:39:32Z")

</div>

Docs for Stack navigator

[https://docs.thunkable.com/thunkable-cross-platform/create/components/layout/stack-navigator](https://docs.thunkable.com/thunkable-cross-platform/create/components/layout/stack-navigator)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 8, 2018, 8:43am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/9 "2018-11-08T08:43:27Z")

</div>

Yes, assign a block to the initialization block with the initial value. This can be a block with the number 0.

---

<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, 11:54am UTC](https://community.thunkable.com/t/how-can-i-show-the-result-of-the-calculation-in-screen2-if-the-input-data-are-in-screen-1/55535/11 "2024-11-08T11:54:48Z")

</div>


