Skip to content

Lists

Block name
Block rendering

Gets an object from a list.
list-getobject
list-getobject2

Gets an object's index in a list.
list-getobject-index

Creates a list with an object.
list-create-list

Gets list size.
list-size

Checks if the list is empty.
list-check-ifempty

Creates a list with objects.
list-createlist

Creates an empty list.
list-create-empty-list

Sets/inserts an object at index into a list.
list-set-insert

list-set-insert2

Gets a sublist from a list.
list-sublist

Makes list from text or text from a list.
list-make-list-from-text

Sorts list.
list-sort

Creates a collection consisting of objects accessible through the named property in the original collection.
list-pluck
If the original collection contains objects A, B and C and each object has property foo, the resulting collection contains values accessible via A.foo, B.foo and C.foo.
Deletes a value from the list.
codeless_remove_item_from_list
The value of the item property can be of any valid JSON type, and it expects a value that must be deleted from the list.
The comparator property is only used when a list contains two or more objects whose keys are identical, for instance [{"foo":1}, {"bar":2}, {"bar":3}].
In that case, if you want to delete the object {"bar":3} you have to pass the key name "bar" to the comparator property and specify the value 3 in the item property.
While key values of objects are identical, you instruct the operation to delete a specific object by specifying the key and the value.
Replaces a value in the list.
codeless_replace_item_in_list
The value of the item property can be of any valid JSON type, and it expects a value that is used to replace another value in the list.
The comparator property is used when a list contains two or more objects with a few properties in each object , for instance [{"id":1, "name":"Foo"}, {"id":2, "name":"Bar"}, {"id":3 , "name":"Buzz"}].
In that case, if you want to replace the object {"id":2, "name":"Bar"} you have to pass the key name "id" to the comparator property and specify a new object {"id":2, "name":"John"} that will replace the {"id":2, "name":"Bar"} object.
The example above uses the value 2 of the "id" key of the new object to find an existing object with the same value stored in the list, and then it replaces the current object with a new one.