"or" block for text

I tried using the 'or' block in logic to compare text, but it does not snap in?

What am I doing wrong?

Thank You

Use the compare text blocks from the text drawer
http://ai2.appinventor.mit.edu/reference/blocks/text.html#compare

The or blockk only is able to work with booleans (true or false)

Taifun

Let me restate. I am using a text recognizer tool, and I want someone to say either 'next' or 'continue' to move on. For that I need the or block.

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

If myText = next or myText = continue
Then...

Taifun

No programming language exists yet that can read the Hamlet soliloquy To Be Or Not To Be ... and generate code from it.

1 Like

Or use 'contains any ' block, then no need 'Or ' block.

What's This?

Also, thank you for the information, @Taifun, @ABG and @Kevinkun. I will try all of these out.

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