# (Solved) Does password contain any special characters?

**URL:** <https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455>\
**Category:** Issues / Bugs\
**Tags:** beginner\
**Created:** [March 10, 2025, 12:45am UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455 "2025-03-10T00:45:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 10, 2025, 12:45am UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/1 "2025-03-10T00:45:43Z")

</div>

![Screenshot 2025-03-09 20.44.11](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/f/9f38f37b6375b2d5868c4eb4b3e7383469ef4466.png)

I’m not sure if this work, does it needs any fixs?

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 10, 2025, 12:46am UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/2 "2025-03-10T00:46:23Z")

</div>

And the app variable characters is a list that contains special characters like (@!#%$)

---

<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:** [March 10, 2025, 4:52am UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/3 "2025-03-10T04:52:11Z")

</div>

The `does contain` block checks for the existence of a text string within another text string. For example:

• does “darn!” contain “!” returns TRUE  
• does “darn!” contain “!@#%” returns FALSE

The `in text find first occurrence of text` returns a number representing the location of the searched for string in the target string, or zero if not found. For example:

• in text “darn!” find first occurrence of text “!” returns 5  
• in text “darn!” find first occurrence of text “!@#%” returns 0

So to check for multiple invalid characters, you’ll need to loop through the letters in the `Password input's Text` to check if `app variable Characters` contains them.

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 10, 2025, 12:54pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/4 "2025-03-10T12:54:10Z")

</div>

Thanks will do, so far i don’t know if it works but visually it does.

---

<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:** [March 10, 2025, 1:16pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/5 "2025-03-10T13:16:15Z")

</div>

Your blocks will determine if the password the user types in contains a zero (“0”). Try it and you’ll see.

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 15, 2025, 4:48pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/6 "2025-03-15T16:48:03Z")

</div>

How can i loop, could you explain the blocks needed to do so?

So i just found out that no my code didnt work, i was working on other things.

---

<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:** [March 15, 2025, 5:01pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/7 "2025-03-15T17:01:16Z")

</div>

Here’s how I would do it:

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

Put your text input’s text block or variable block where it says “word”. The delimited string is blank (“”). The loop variable j will contain each letter on the input text.

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 15, 2025, 5:10pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/8 "2025-03-15T17:10:56Z")

</div>

So i did what you told me, and what should i put in the delimiter text? I never really used that block. i imagine it the special characters or no? 😅

---

<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:** [March 15, 2025, 5:25pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/9 "2025-03-15T17:25:20Z")

</div>

The delimiter should be blank. If you wanted to make a list from text that contained a delimiter such as “one,two,three” then you would add the delimiter (in this case a comma “,”) to split those words into separate list items.

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 15, 2025, 5:32pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/10 "2025-03-15T17:32:01Z")

</div>

Ohhh i see, so the item “j” is the make list from text now i should do does “@!%#” contains j?

---

<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:** [March 15, 2025, 5:54pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/11 "2025-03-15T17:54:51Z")

</div>

Yes, that’s right.

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 15, 2025, 5:58pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/12 "2025-03-15T17:58:42Z")

</div>

It worked like a charm, thanks!

---

<div class="post-metadata">

**Author:** ![skadaiy3lcy](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@skadaiy3lcy](https://community.thunkable.com/u/skadaiy3lcy)\
**Post date:** [March 15, 2025, 6:16pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/13 "2025-03-15T18:16:42Z")

</div>

And by the way, it worked but the things loops itself, let me send you a screenshot of what happening and where it looping (the text is looping itself when i tried submitting)

 ![Screenshot 2025-03-15 14.16.27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/05bc1c18c33e72050c0d0557f79d8c8794a88f33.png)  
 ![Screenshot 2025-03-15 14.21.01](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9ed8b355fac353105e71f7520e800337b863f347.png)

---

<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:** [March 15, 2025, 9:12pm UTC](https://community.thunkable.com/t/solved-does-password-contain-any-special-characters/3642455/14 "2025-03-15T21:12:04Z")

</div>

Can you post a link to your project? It’s hard to troubleshoot without all of the blocks.
