How to add multiple words in "contains text piece"


This is not working pls tell How to add multiple words in "contains piece"

You have to split text at spaces, then loop through the list to check if textbox.text is contained in the list.

The @Powertech_Development method is the right way, but maybe is easy to understand and implement for you this way, for a few words only.

i have 1500 words
Any other solution?

Use my method since you have 1500 words.

Not Working

i didnt get you pls show blocks

show your blocks and remove all spaces in the csv row…

the solution from @Powertech_Development is more or less the same… he/she only assumed you use a space as delimiter of your words


1 Like

If you don’t want to change the dots and spaces in the list, just drop the blocks below.


Your blocks look fine…
What happens and what do you expect to happen? Just saying 'not working ’ does not help very much…
Any example of your Textbox1 Text?
And what about using Do it to debug your blocks?

so basically when user enter some word if the word doesn’t content any domain extension it will be a google search in webviewer but if it has a domain extension then the url will open in webviewser

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing and Debugging

I have to correct me here…
Your blocks try to go to an URL 1500 times (the number of words in your list)

You might want to use a global variable to store, if one of the words has been found. Then outside of the loop use the if statement


Can you show some examples?

Try this

and if you got stuck, post an updated screenshot of your relevant blocks


This doesn’t work too

this is something completely different…
this is my suggestion


Got it Thanks for :grinning: :grinning: :grinning: