# Not able to operate more than two values

**URL:** <https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698>\
**Category:** Questions about Thunkable X\
**Created:** [March 15, 2022, 9:02am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698 "2022-03-15T09:02:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ideaappstudios](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ideaappstudios/32/127508_2.png) [@ideaappstudios](https://community.thunkable.com/u/ideaappstudios)\
**Post date:** [March 15, 2022, 9:02am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/1 "2022-03-15T09:02:46Z")

</div>

As you everyone knows what i am making is a calculator  
please help me as the calculator can only count two values.  
if the third or more values are entered then the result comes only of the first two values  
example  
if , 4+5\*6+5 typed , the answer would be 9  
link for project [Thunkable](https://x.thunkable.com/copy/7c8fc0dd4782b32df0a4ffc8afe74319)  
@muneer

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [March 15, 2022, 11:38am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/2 "2022-03-15T11:38:52Z")

</div>

Please stop spamming the forum with multiple topics about the same thing. It’s disrespectful to the users who waste time clicking on duplicate topics.

---

<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 15, 2022, 11:55am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/3 "2022-03-15T11:55:22Z")

</div>

You need to show your work so others can comment and give ideas.

Please show what you have tried.

---

<div class="post-metadata">

**Author:** ![ideaappstudios](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ideaappstudios/32/127508_2.png) [@ideaappstudios](https://community.thunkable.com/u/ideaappstudios)\
**Post date:** [March 15, 2022, 12:09pm UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/4 "2022-03-15T12:09:55Z")

</div>

about the last day’s calculator  
if more than two values are operated , then only the first two values gets operated  
link [Thunkable](https://x.thunkable.com/copy/7c8fc0dd4782b32df0a4ffc8afe74319)

---

<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 15, 2022, 12:30pm UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/5 "2022-03-15T12:30:09Z")

</div>

> [@ideaappstudios](#):
>
> if more than two values are operated , then only the first two values gets operated

I know this because you mentioned it in, maybe 4, different posts.

What have you tried to solve this issue?  
Show the codes you tried to solve it so that others can give you advises.

---

<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 15, 2022, 5:50pm UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/6 "2022-03-15T17:50:15Z")

</div>

See this demo  
[https://x.thunkable.com/projectPage/622f0aad2b247a001179573e](https://x.thunkable.com/projectPage/622f0aad2b247a001179573e)

Sample output  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c02122197de3ddf07e4013fe675222e0f401e5d.png)

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [March 15, 2022, 9:31pm UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/7 "2022-03-15T21:31:09Z")

</div>

the blocksi nside seem to be capable of computing algebraic expressions - i bet it could be very useful in a nerdle-like puzzle written in thunkable!

> **[Nerdle - the daily numbers game](https://nerdlegame.com/)**
>
> Daily number challenge at nerdlegame.com

after you get the equation, just pass it through these blocks!

---

<div class="post-metadata">

**Author:** ![ideaappstudios](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ideaappstudios/32/127508_2.png) [@ideaappstudios](https://community.thunkable.com/u/ideaappstudios)\
**Post date:** [March 16, 2022, 5:31am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/8 "2022-03-16T05:31:11Z")

</div>

thank you so much but can you add one more operator that is ^ (exponent  
so it will be more good @muneer

---

<div class="post-metadata">

**Author:** ![ideaappstudios](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ideaappstudios/32/127508_2.png) [@ideaappstudios](https://community.thunkable.com/u/ideaappstudios)\
**Post date:** [March 16, 2022, 7:06am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/10 "2022-03-16T07:06:06Z")

</div>

![Screenshot 2022-03-16 123447](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/716401d99fb2a7d74d19e35255424a9e60fa9d62.png)  
where are those `initialize variable` block of this variables

---

<div class="post-metadata">

**Author:** ![ideaappstudios](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ideaappstudios/32/127508_2.png) [@ideaappstudios](https://community.thunkable.com/u/ideaappstudios)\
**Post date:** [March 16, 2022, 7:10am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/11 "2022-03-16T07:10:13Z")

</div>

nor these variables have any `set variable` block.  
i have implemented your code in my calculator project , the output was 0 .  
link for my project : [Thunkable](https://x.thunkable.com/copy/e2658666725aac06e7548a861807086c)  
🙁 ☹ 😿 😭

---

<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 16, 2022, 11:01am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/12 "2022-03-16T11:01:22Z")

</div>

> [@ideaappstudios](#):
>
> where are those `initialize variable` block of this variables

These are `Function parameters` and will only work inside the function. These variables are automatically initialized by the function itself.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d84ac67495d7b185d21b9168a90341fe3dd2c88f.png)

> [@ideaappstudios](#):
>
> can you add one more operator that is ^ (exponent

You can add it yourself. I added it in my project.

---

<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 16, 2022, 11:33am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/13 "2022-03-16T11:33:44Z")

</div>

Looking at your code, I immediately see this

- These blocks are resetting the same variable. Why?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/126047bf8ea2469d0524a1a531d5fad4f0e84260.png)

- These variables should be deleted  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b6fad1866642ef05264db9bf16e5f718c243530f.png)

I have not tested the code but you would need to correct it before it can be tested.

---

<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:** [June 14, 2022, 11:34am UTC](https://community.thunkable.com/t/not-able-to-operate-more-than-two-values/1784698/14 "2022-06-14T11:34:13Z")

</div>

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