# (list) contains (thing)? — Scratch Block Guide > Boolean block returning true if an exact item exists anywhere in the list. How to use the "(list) contains (thing)?" block in Scratch 3.0 (Variables & Lists): clear explanation, working block example, and debugging tips. ## What this block does Boolean block returning true if an exact item exists anywhere in the list. Check whether the player already picked up a key or visited a room. - Category: Variables & Lists - Key tip: Much cleaner than maintaining 15 separate "has_item_1" variables. ## 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 (list) contains (thing)?** - When green flag clicked - If <(bag) contains (Golden Key)?> then - Say (Door unlocked!) Try it: Unlocks the door cleanly if Golden Key is in the inventory list. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Variables & Lists](/en/dictionary/variables/): See the overview and patterns for Variables & Lists. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/variables/list-contains/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)