# Text must exclude anything which is not

**URL:** <https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336>\
**Category:** Questions about Thunkable X\
**Tags:** list, text\
**Created:** [December 3, 2022, 3:34am UTC](https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336 "2022-12-03T03:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [December 3, 2022, 3:34am UTC](https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336/1 "2022-12-03T03:34:33Z")

</div>

![Screen Shot 2022-12-02 at 9.26.40 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/88d815b6c90a8b3e65fa8615eaa0eb01ce356937.png)

Is there some way to accomplish this idea currently?

This could be worded more than one way too  
Does text include anything besides…

The same could be applied to lists, example  
Does list include anything besides…

This would force lists or text to contain certain items, and if an attempt was made to include anything else then it would fail

Again, if there’s already a way to do this and I’m just missing it could someone help out here. I couldn’t be the only one who would benefit from this for the future.

---

<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:** [December 3, 2022, 5:53am UTC](https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336/2 "2022-12-03T05:53:58Z")

</div>

I could see that being useful. Of course, it’s possible to write a function to do this. I wrote this kind of hastily but I think it does the trick:

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

Project in case you want to try it out (see the first screen): [Thunkable](https://x.thunkable.com/copy/590ced13ecc8ac05dbb190f5f9b6dfc5)

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [December 3, 2022, 6:45am UTC](https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336/3 "2022-12-03T06:45:08Z")

</div>

I was hoping to do it without using a loop bc I’m already in one currently

---

<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:** [March 3, 2023, 6:45am UTC](https://community.thunkable.com/t/text-must-exclude-anything-which-is-not/2162336/4 "2023-03-03T06:45:09Z")

</div>

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