Split List into Two Lists
- 13 Oct 2021
- 1 Minute to read
- Print
- DarkLight
Split List into Two Lists
- Updated on 13 Oct 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.
Overview
Example Lab Details | |
Version | 6.5.0 |
Root Folder | Example Lab - Split List |
Modules | None |
Dependencies | None |
This Example Lab demonstrates the ability to take in a list and split them into two separate lists according to the given rule in the Flow.
Explanation
In this Flow, given a list as Input, iterate through each item in the list and determine if that number is odd or even. If the number is even, add it to the list of even numbers; the same process occurs for odd numbers as well. Then return both odd and even number list as the result. As a result we now have two different lists made from a single list. We have an Odd Number List and an Even Number List.
Reference Articles
Project Download
The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.5.0 or later using our Importing/Exporting article.
Was this article helpful?