Make Academy Intermediate: Variables in get() and map()

Welcome to the Make community!

The map function works this way:

Let’s take your example:

{{ map(10.books; "book_title"; "genre"; "Action") }}

This is the equivalent of saying:

  1. For the array 10.books,
  2. I want to get only the book_title value of each book,
  3. Where the genre is equal to Action (case-sensitive)

so now you have an array of only book titles.

You could stop here, and don’t really need to “split” them into separate variables like “ActionBookRequest1st” etc., but I think this tutorial is teaching you how to reference individual items from the map function/array.

Hope this helps! Let me know if there are any further questions or issues.

For more information on map and get, see “Mapping with arrays” below:

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Partner & Custom Apps

@samliew