--- title: "Comparing Two Lists" slug: "comparing-two-lists" updated: 2022-10-24T20:16:18Z published: 2022-10-24T20:16:18Z canonical: "documentation.decisions.com/comparing-two-lists" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Comparing Two Lists Example Lab ArticleWhile 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.6.0 | | **Root Folder** | Example Lab - Comparing Two Lists | | **Modules** | None | | **Dependencies** | None | 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[For Each Step](https://documentation.decisions.com/step-library/docs/foreach-step) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-615.png) --- ## 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](https://documentation.decisions.com/docs/importing-and-exporting-projects) article. [ExampleLab[ComparingTwoList].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BComparingTwoList%5D.zip) ---