Need one word out of sentence to be answer

trying to make the answer to a question be able to be a sentence and only one word in that sentence will affect the code. so, like if it asks do you want pizza you answer "i would like a pizza yes please" it only matters that yes is there and it should run that if else part of code.
image
that is the current code that isnt working

Could you do
[scratchblocks]
<(answer)contains[yes]>
[/scratchblocks]
?

i cant find that block where is it?

Drag this into your project:
pic

thank you it worked

The official contains block is in the Strings library

Are we doing your BJC homework? :~/

Oh, sorry Brain. I probably should look ahead in the curriculum before I teach it next year.

:~)

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