I'm looking for a block that does exactly the same thing as the 'contains any' text piece list block

I used a translator, so please excuse any unnaturalness.

hello. In AppInventor, I have a ‘contains any’ text piece block and I want to use the
In Kodular, there is no ‘contains any’, only ‘contains’ text piece block.

I was wondering what block in Kodular does the same job as the ‘contains any’ text piece block.
I’m posting this because I’ve been searching the community and haven’t seen any posts about it (although I could be a bad searcher).
Thanks in advance.



As you are comparimg only 2 values, use 2 contain blocks together with an or block from the logic deawer


1 Like

Thank you for your response. I just checked my notifications.

Hello everyone. I’m not a native speaker, so I used a translator for some parts, so please forgive me if anything is not correct.

I’ve posted in the community before, but I didn’t solve it because I didn’t understand it well.
It’s been a while since it was last answered, so I’m writing to ask in more detail.

Question: I found the contains ‘any’ text piece block in AppInventor and used it in my app.
I moved the project to Kodular to implement the feature I wanted, but in Kodular there is no contains ‘any’ text piece block, only the contains text piece block.

I tried to test all the similar blocks in combination and it didn’t work, which is why I’m contacting you. I’m stuck on this part of the development as I just need to solve this part.

If you happen to know of a block in Kodular that does the same thing as the contains ‘any’ text piece block in AppInventor, I’d love to hear about it.

I’ve uploaded a picture below to help you understand.

(insert image)](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/f/9fc3237473502733d3a411a2afdfc7757e74314c.png)


And as for what I was trying to create, the
(insert image)(https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/f/9fc172585e671cf155fe1fa96ec435e15af14fdb.png)

So, with the help of the community, I created a block that uses the contains ‘any’ text piece block so that if the QR scan is a URL, it goes to a web browser and if a barcode number or text is recognised, the result is displayed in a label.

I have a post that I left before and you replied to it, but when I translated it, it didn’t make sense to me, so I’m writing to you in more detail.

I’d like you to reply if you can, thanks.

Do you looking for adding the block of “ContainsAny” to apply the same function to kodular
you could try this simple extension:
ContainsAny.aix (6.0 KB)

Screenshot 2023-08-04 171549

1 Like

Thanks, but unfortunately I’m on a tight budget and must make it without the extension. How can I make it with a combination of different blocks?

  • Correct the mistake, it’s a translation error…
    It’s not that we didn’t have the budget, it’s that we couldn’t use the extension for personal reasons.

Try this one :

1 Like

I was struggling with it, thank you so much! I will give it a try.
Have a great day!:smile:

1 Like

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