hi i need help, how can i check if a label contain word in list?
what block i need to use?
Hi there,
Try using this block.
This tests if piece
is in text
.
Edit: If you want a word in a list, try these:
hi there, thank you for helping me

I already try your block but it always return true on last list (sphagetti)
when i try to change label 1 to pizza it return false
i try to change other, the return is false.
why is this happened?
Perhaps try this way
Sorry, it's my fault. I realized what's the problem now.
Do these work?
This might work, but if the labe's text is hello world
and there is only hello
in the list, it returns false
.
@Redynan_frozt If the label's text is France
and the list's version is france
, do you want it to return true?
In which case
hi @TIMAI2 thank you for your help
i already try your block but it doesn't work. coz the text in label 1 is "i want pizza". and i need to recognized if in the list there is food that in label 1
thankyou so much @gordonlu310 I already try yur block and it works like charm
thankyou so much your guidance
but how i can check from label 1 "i want pizza" if in the list and extract the word "pizza" from label 1?
I already try this block but the result in label 2 is [false, false, false, true]
Because you did not use the is in list?
block? Check the screenshot again in post #4.
With one correction, since earlier code block wasn't producing result with confidence.
Here is a tutorial (https://imagnity.com/tutorials/app-inventor/list-blocks-on-app-inventor/) by Sajal. Look for 6. Search for an Item. The tutorial explains why the method 'works' and you may find the explanation useful.
hi all thank you for your help. I already solve the block because all of you.
the greatest thankyou to all of you
especially @gordonlu310 and @TIMAI2 and @RamNaresh
cheers
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.