How to add items to a list?

4 points · 2 comments · view on lemmy.world

2 Comments

androidul@lemmy.ml · 2 pts · 1y (1 reply)

add a List action, then do a loop where you add elements to it

List
Repeat
    Ask for Input (Text)
    Add to Variable (List)
End Repeat
atnbueno@lemmy.world · 3 pts · 1y

The output of a Repeat loop is already a list, so you can do this too:

Repeat 10
    Ask for Input (Text)
End Repeat
Set Variable (MyList) to (Repeat Results)