Comparing Two Lists
  • 24 Oct 2022
  • 1 Minute to read
  • Dark
    Light

Comparing Two Lists

  • Dark
    Light

Article Summary

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

Version6.6.0
Root FolderExample Lab - Comparing Two Lists
Modules None
DependenciesNone

This Example lab demonstrates how to compare two string lists and output the matches.


Explanation

This Flow takes in two inputs: the First List (String list) and Second List (String list). Then, create the Matched String List (String list) using the create data step. The first list is passed for each step which loops through the list. Then the list is compared to the second list using the "String is in List" step if the strings match, they are then passed to the "Add Items to List" step, which creates the list of matching strings from the two lists.

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.6.0 or later using our Importing/Exporting article.





Was this article helpful?