🤖 What are the most useful functions in Make and some examples of using them?

One of the most useful functions in Make is “mapping”. Mapping is used to get data from the output of one module and use the data in the input of another module. Mapping sometimes involves filtering collections and arrays using a combination of functions: the get() and map() functions. There is an excellent write up on this which is a must read for anyone who wants to use Make effectively.

If you don’t want to read the article here’s a short preview:

Imagine you have a bundle of data that looks like this. You want to get the “no” value of the corresponding key in the array Meta data
image

This expression will obtain the value of the Value item of the element with key Meta data ID item value equal to 20642 :

image

Note that the get() function retrieves the first item in the returned array from map().

You may be asking why the second and third argument are value and id where the actual display is Meta data ID and Value. This is because the raw names of each of these keys is different than the display name. Hover over each element in the mapping “star” panel and see what the raw name is. This is what you should use in the map() parameters. Do not click on these to map them as it will not work. This is a common mistake.

5 Likes