- Contents
Interaction Designer Help
Merge String Lists
This List tool merges two lists of strings and returns the appended list, the intersection of the two lists, or the union of the two lists. The optional Boolean input, when set to True, allows for clearing the source lists.
Note: This tool is useful when you have two lists to check and you want to avoid looping through each item in each list.
Inputs
Mode
The type of merge to perform:
Value |
Mode |
Description |
Example |
||
Source List 1 |
Source List 2 |
Merged List |
|||
0 | Intersect | The merged list contains only the items that are included in both source lists. | 1, 2, 3 | 1, 3, 4 | 1, 3 |
1 | Union | The merged list contains one instance of each item in the source lists. | 1, 2, 3 | 1, 3, 4 | 1, 2, 3, 4 |
2 | Append | The merged list contains all items from both lists. | 1, 2, 3 | A, B, C | 1, 2, 3, A, B, C |
Empty source lists?
Set this Boolean parameter to True to empty the source lists of strings, reducing the memory used to store the lists. This parameter is optional and defaults to False.
Outputs
Source List 1
The first source list of strings to merge.
Source List 2
The second source list of strings to merge.
Merged List
The resulting merged list.
Exit Paths
Next
This step always takes the Next exit path.