Lists

A set of blocks that allow you to work with lists. A list is a collection of variables of any type

../../../_images/image-113.png

Creating lists

Create a variable to hold the list. By default, Varwin XRMS already has a “list” variable created

Create an empty list

../../../_images/image-29.png

Creating a List from Items

../../../_images/image-38.png

You can edit the number of elements in this block

../../../_images/image-13.gif

Creating a List of Identical Items

../../../_images/image-45.png

List operations

Gets, gets and remove, remove list item

Gets, gets and removes or simply removes an item at a specified list position

../../../_images/image-10.png

Assign value to element/insert element

Assigns a value to an element or inserts an element at the specified list position

../../../_images/image-114.png

Get the length of the list

../../../_images/image-53.png

Checking if the list is empty

Returns “true” or “false”, so it is used with logical blocks

../../../_images/image-64.png

Find element

Returns the position number of the first/last occurrence of an element in a list. Returns 0 if the element is not found

../../../_images/image-73.png

Take Sublist

Returns a copy of the specified part of the list

../../../_images/image-81.png

List of scene objects

Returns a list of all available objects in the scene

../../../_images/image-9.png