Add New Element To List Step
Brief description
In this step, you can add a new element to an existing list variable (a string of integers).
Step Information
Step Name (Not required)– the custom name of the process step that labels the editor’s process step box
Input Parameters
- Source list (Required) -variable name of an existing list data type (integer or string) where you want to add an element
- Element to add (Required) - value or variable that you want to add to the list.
- Add to the end of list (Required) - toggle button indicating whether the element should be added to the end of the list. If the value is false, the field "List index" is required.
- T (true- default value)
- F (false)
- List index (Not required) - specify the index of the list where you want to add an element
Output Parameters
- Destination list variable (Required) - existing or new variable name of list data type that contains the resulting value
- Element count (Required) - existing or new variable name of numeric data type that contains the count of resulting list
Additional comments
If your source list variable is of the type ListOfStrings, the element you want to add must be either a string value or a string variable. Additionally, the output variable, which serves as the destination list, will also need to be of the same type. Similarly, if the source variable is a ListOfIntegers, you can only add an integer variable, and the destination variable must be a ListOfIntegers as well.
Before you add a list variable, the other fields will be disabled because they depend on the data type of the list (string or integer). If you want to select a new list, it must be of the same type. If you wish to change the data type, you need to clear the variable first and then select the new data type. Please note that doing so will delete all existing values because you are changing the data type.