Can someone tell me how to make a list in the Snap! editor

I can’t create lists with ease

I tried various ways to find the “create list” button, but it failed
Can somebody help me?

you have to make a variable then set the variable to a list with the set variable block

untitled script pic (1)
this will do

thank you so much

okay?

It’s what coder_07 said, you create a variable and set it to a list.

set [list V] to (list [a]@<>)
add [stuff] to (list)

item (1 v) of (list) // reports "a"

I already know

Oh, it’s just that you replied to cybercube with “okay?”

They were just showing it instead of just saying it. Some people wouldn’t understand it until they see it (which I can tell you’re not one of those people).

This answer satisfied the OP, but I think it doesn’t really help them understand why Snap! does it that way, namely, you can use a list without giving it a name.

What I like to do is instead of something like if <<(word) = [hi]> or <(word) = [hello]> or <(word) = [hey]> @delInput @addInput> { } you can do if <(list [hi] [hello] [hey] @delInput @addInput) contains (word)> { }

You can also make lists using the split block. Really easy, really fast.