# Order of Blocks Ignored

**URL:** <https://community.thunkable.com/t/order-of-blocks-ignored/615809>\
**Category:** Questions about Thunkable X\
**Created:** [June 15, 2020, 4:39am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809 "2020-06-15T04:39:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)\
**Post date:** [June 15, 2020, 4:39am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/1 "2020-06-15T04:39:09Z")

</div>

Hello, I am trying to make a simple equation solver with just addition, subtraction, multiplication, and division that follows the order of operations.

In order to do this, I have to have the multiplication and division in the equation done first.

Basically, TempList is the equation in list form that looks something like “1,x,4,+7,-9” so it would be 1\*4+7-9

Here is the code:

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

But when I run the code, it always reads left to right. So 10-4\*6 isn’t -14, it’s 24. I have tried adding wait blocks in between and here I split it into two functions but I really don’t know what I am doing wrong.

Any help would be appreciated. Thanks!

---

<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:** [June 15, 2020, 7:08am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/2 "2020-06-15T07:08:51Z")

</div>

Hello, check 10 - 4\*6

[https://x.thunkable.com/projects/5e36a58e5cf8437f0e791129/project/properties/designer/](https://x.thunkable.com/projects/5e36a58e5cf8437f0e791129/project/properties/designer/)

If there is a problem with block synchronization, then the best solution is to stop using Thinkable X until this huge problem is fixed. Otherwise, instead of developing applications, you will endlessly fight with bugs.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maxb/32/35200_2.png) [@maxb](https://community.thunkable.com/u/maxb)\
**Post date:** [June 15, 2020, 7:33am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/3 "2020-06-15T07:33:28Z")

</div>

You look for “/” and you ask the program if “/” is = to 0 and to calculate if “/” is \< of “x” or of 100?

Your code is very strange to me, can I ask you what it has to do?

---

<div class="post-metadata">

**Author:** ![tronman53](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tronman53](https://community.thunkable.com/u/tronman53)\
**Post date:** [June 15, 2020, 10:22am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/4 "2020-06-15T10:22:19Z")

</div>

In the TempCalcTF block, you are setting this variable to a numeric location of + or x.  
In the TempCaLocation block, you are looking for either + or x in the TempCalcTF variable, but that variable is a number. So it will return 0.  
Does that make sense?

---

<div class="post-metadata">

**Author:** ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)\
**Post date:** [June 15, 2020, 9:37pm UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/5 "2020-06-15T21:37:15Z")

</div>

After simplifying some blocks and adding a variable in between I got it to work

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/c/0c85a86dc9956aa7c8c321f24320949071998acf.png)  
Don’t know why I need the extra variable…

But thanks for everyone’s help!

---

<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:25am UTC](https://community.thunkable.com/t/order-of-blocks-ignored/615809/6 "2024-11-08T11:25:43Z")

</div>


