# Is this function available in Thunkable X?

**URL:** <https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 18, 2018, 10:13pm UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480 "2018-07-18T22:13:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![waseem\_gul](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/waseem_gul/32/23120_2.png) [@waseem\_gul](https://community.thunkable.com/u/waseem_gul)\
**Post date:** [July 18, 2018, 10:13pm UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/1 "2018-07-18T22:13:12Z")

</div>

Is this function from Thunkable Classic available in Thunkable X?  
 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c30438bbe7aeb34d6778ccef9443b512b86ca4f7.PNG)  
I did a search for this but I can’t find it in Thunkable X.

---

<div class="post-metadata">

**Author:** ![Valaki\_52](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/valaki_52/32/23465_2.png) [@Valaki\_52](https://community.thunkable.com/u/Valaki_52)\
**Post date:** [July 19, 2018, 5:48am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/3 "2018-07-19T05:48:54Z")

</div>

It’s not the same. In classic, that returns the index of the item in the list. Yours just returns if an item is in the list, not the index.

---

<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:** [July 19, 2018, 5:51am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/4 "2018-07-19T05:51:45Z")

</div>

There is no such block, really. But it’s easy to get it yourself.

---

<div class="post-metadata">

**Author:** ![Valaki\_52](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/valaki_52/32/23465_2.png) [@Valaki\_52](https://community.thunkable.com/u/Valaki_52)\
**Post date:** [July 19, 2018, 5:55am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/5 "2018-07-19T05:55:30Z")

</div>

STILL NOT THE SAME!  
For example:

If you have a list containing 2 elements, named MyList: a and b, and you do this:  
`index in list thing a`  
`list MyList`

**It will result 1, because a is the first list item.**  
If you do the same with b, will result 2.

---

<div class="post-metadata">

**Author:** ![Valaki\_52](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/valaki_52/32/23465_2.png) [@Valaki\_52](https://community.thunkable.com/u/Valaki_52)\
**Post date:** [July 19, 2018, 5:58am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/6 "2018-07-19T05:58:46Z")

</div>

Oh so you deleted the pic… So yeah, this is the answer.

---

<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:** [July 19, 2018, 6:02am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/7 "2018-07-19T06:02:23Z")

</div>

![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c7b528870d5d41a072d01d24195c6cb018d4e44.png)

---

<div class="post-metadata">

**Author:** ![waseem\_gul](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/waseem_gul/32/23120_2.png) [@waseem\_gul](https://community.thunkable.com/u/waseem_gul)\
**Post date:** [July 19, 2018, 7:19am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/8 "2018-07-19T07:19:49Z")

</div>

@actech I tried your blocks but with your method my app get crashed and I don’t even know if it works because the app closes instantly.  
What I really want is,  
I set text to speech to pick the random item from “PlaceNames” list and speak and there’s a button “Why” When a user press that button “Text to Speech” will pick an item from “PlaceReply” list. But You know that I can’t pick it randomly I want to show exact item for each name.

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c13d14076f88e4ff8fee27da394fe8453b17fded.PNG)

---

<div class="post-metadata">

**Author:** ![waseem\_gul](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/waseem_gul/32/23120_2.png) [@waseem\_gul](https://community.thunkable.com/u/waseem_gul)\
**Post date:** [July 19, 2018, 7:34am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/9 "2018-07-19T07:34:39Z")

</div>

How to get index number of an item?  
So finally I did it with the following method

 ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/0463f99cd225bbb7dbf8b0d55fb62a0ed5f95dbf.PNG)  
I add another variable “PlaceNames2” When random item from “PlaceNames” is picked, it text sets to “PlaceNames2”.  
Hope it will help more newbies to.

---

<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:** [July 19, 2018, 7:57am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/10 "2018-07-19T07:57:47Z")

</div>

Your solution is interesting, but it does not check for existence of list element. If the item is not in the list, the unit “find in list” will return 0, and the block “in list get” will return undefined, and Speak nothing plays that will confuse the user.

---

<div class="post-metadata">

**Author:** ![waseem\_gul](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/waseem_gul/32/23120_2.png) [@waseem\_gul](https://community.thunkable.com/u/waseem_gul)\
**Post date:** [July 19, 2018, 8:52am UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/11 "2018-07-19T08:52:15Z")

</div>

Yes but actually (in this case) there is no way for the item to be not found in the list because “random item from list” will pick the item that exists in the list.  
So for this situation it should work perfectly, maybe this will not work everywhere.  
BTW Sorry for my English

---

<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, 12:01pm UTC](https://community.thunkable.com/t/is-this-function-available-in-thunkable-x/36480/12 "2024-11-08T12:01:14Z")

</div>


