NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

(apple) contains (a)? — Scratch Block Guide

📌 What you will learn

Returns true if the second piece of text appears anywhere inside the first (case-insensitive).

What this block does

Returns true if the second piece of text appears anywhere inside the first (case-insensitive).

Check keyword answers in trivia games or chat-bot projects.

  • Category: Operators Blocks
  • Key tip: More forgiving for young players than exact "=" matching.

Working Scratch example

Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.

Example using (apple) contains (a)?
  1. When green flag clicked
  2. If (answer) contains (cat)? then
  3. Say Meow!

Try it: Matches "cat", "Cats", or "I love my cat".

Related block guides

Explore other blocks in the same category or return to the full English Block Dictionary.

Back to Operators Blocks See the overview and patterns for Operators Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

FAQ

When should I use "(apple) contains (a)?" in Scratch?

Check keyword answers in trivia games or chat-bot projects. More forgiving for young players than exact "=" matching.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.