# Why can't I use "else if"?

**URL:** <https://community.thunkable.com/t/why-cant-i-use-else-if/1553986>\
**Category:** Questions about Thunkable X\
**Tags:** bugs, help, bug, i\_need\_your\_help, thunkable-bugs\
**Created:** [October 10, 2021, 8:05am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986 "2021-10-10T08:05:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [October 10, 2021, 8:05am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/1 "2021-10-10T08:05:39Z")

</div>

Why can’t I use “else if”?  
[![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4eb50060a3d777dcb44a1007d7ad60b756630ea6.png) ](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4eb50060a3d777dcb44a1007d7ad60b756630ea6.png)

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

---

<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:** [October 10, 2021, 8:12am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/2 "2021-10-10T08:12:12Z")

</div>

Check my comment in your other post

> [@Can't save the program?](https://community.thunkable.com/t/cant-save-the-program/1553609/14):
>
> I’m sure it is not a bug. Create a variable and make the variable = get property [image] Then in your else if use the variable to test if greater.

I created a test project with only a button and a label and this is the code

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b65ffb92b9e25d4f618081e26a5e34ebb94eba87.png)

When I click the button I get this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b50cb67b4d6ecd71335117b4b9ee24f60a3a9cea.png)

Works fine and as expected and has no bug or error.

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [October 10, 2021, 9:34am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/3 "2021-10-10T09:34:07Z")

</div>

> [@Can't save the program?](https://community.thunkable.com/t/cant-save-the-program/1553609/20):
>
> ![圖片](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/cabfbce53c49cf78d5ef50626a97c59f901628e4.jpeg)
> 
> ![圖片](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/711f93478d40dc2944fbb1fb3c918e3ac6fa5b79.png)
> 
> I used 4 else if

this

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [October 10, 2021, 9:37am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/4 "2021-10-10T09:37:35Z")

</div>

It seems that there can only be 1 else if

---

<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:** [October 10, 2021, 9:50am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/5 "2021-10-10T09:50:21Z")

</div>

See this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/413ecc913befc75d6fe7a122845a861caeba8b7a.png)

It still works

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [October 10, 2021, 9:56am UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/6 "2021-10-10T09:56:07Z")

</div>

it works…  
[https://x.thunkable.com/copy/cf4cc510f46585690aba33fd0c32bd5c](https://x.thunkable.com/copy/cf4cc510f46585690aba33fd0c32bd5c)

---

<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:** [October 10, 2021, 4:15pm UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/7 "2021-10-10T16:15:06Z")

</div>

You should not have two `else if` conditions that are the same. You are checking to see if a property is \> 50 **twice**. You need to fix that.

---

<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, 1:14pm UTC](https://community.thunkable.com/t/why-cant-i-use-else-if/1553986/8 "2024-11-08T13:14:51Z")

</div>


