Skip to main content

Lists

  • Chapter
  • First Online:
Scratch by Example

Abstract

Variables give you more flexibility in your scripts, as you learned in Chapter 8, but are limited to storing a single value at any one time. What if you need to store multiple, related values, such as a wish list or a grocery list? You could use several separate variables, but you’d have to create them all ahead of time, which takes time and guess work. Scratch offers another, easier solution: you can create a list.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Eduardo A. Vlieg

About this chapter

Cite this chapter

Vlieg, E.A. (2016). Lists. In: Scratch by Example. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1946-1_9

Download citation

Publish with us

Policies and ethics