How to add multiple words in "contains text piece"

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

Taifun

1 Like

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

image

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?
Taifun

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
Taifun

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

Taifun

Can you show some examples?

Try this

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

Taifun

This doesn’t work too

this is something completely different…
this is my suggestion

Taifun

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

Continuing the discussion from How to add multiple words in "contains text piece":

This worked

But when i add else statement it no longer works

pls reply

Unfortunately you ignored my previous advice…
Use a global variable as suggested and call the url only once outside of the loop

Taifun

WORKS!! Thanks for help I was not able to get what were you saying but then variable thing striked me

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