OpenBIMRL | List functions
Class path: collection.list.dispatchElements
Split list

Description
Splits a list into two lists by specifying a list of truth values. Elements that have the same index as a TRUE value are sorted into the first list and elements that have the same index as a FALSE value are sorted into the second list.
Input
| Input | Name | Type | Description |
|---|---|---|---|
| 0 | List | List<Object> | List of elements to be split |
| 1 | Filter | List<Boolean> | List of Booleans |
Output
| Output | Name | Type | Description |
|---|---|---|---|
| 0 | List A | List<Object> | Results list A |
| 1 | List B | List<Object> | Results list B |
Use/Example
Sample file
Download of a sample file so that the user can test the usage himself