Core Nodes
Loop

Loop

The Loop node is a versatile tool in BuildShip that empowers you to iterate over elements within a JSON object, an array, or even a literal value. This node serves as a powerful mechanism for processing and manipulating data iteratively. It is particularly useful when you want to perform a series of actions on each element of the input provided.

Loop node

Looping Functionality

The primary functionality of the Loop node is to traverse through all the elements present in the input data and perform specified actions on each element. It facilitates the execution of a set of nodes within the loop, allowing you to interact with and modify the data at each iteration.

The loop processes each element sequentially. This mode is beneficial when the execution order matters, and actions must be taken step by step. For instance, performing data transformation on each element one after the other.

Using the Loop Node

The Loop node's functionality revolves around iterating over the elements of the input data and executing a set of actions for each element. Here's how you can use the Loop node:

  • Input Configuration: The Loop node accepts three types of input: JSON objects, arrays, or literals. You can provide the input directly in the editor.

  • Concurrency: The Loop node offers the flexibility to set the number of concurrent executions to run. This allows you to control how many iterations are processed simultaneously, enhancing the efficiency of your workflow. (Note: To modify this option, please check the pricing page (opens in a new tab) to see the maximum concurrency limit for your plan.)

  • Node Actions: The Loop node encapsulates a series of nodes within it. This allows you to define the actions you want to perform on each element. You can add nodes for logging, making API calls, calculations, or any other desired functionality.

💡

Example: Data Transformation

Imagine you have an array of raw data that needs to undergo multiple processing steps. You can utilize the Loop node in series mode to accomplish this:

Input: JSON array containing raw data

Loop Body: Within the loop, include nodes that perform data transformation, filtering, and enrichment.

By using the Loop node in series mode, you ensure that each data point is processed methodically, producing the desired results.

Video

Need Help?

  • 💬
    Join BuildShip Community

    An active and large community of no-code / low-code builders. Ask questions, share feedback, showcase your project and connect with other BuildShip enthusiasts.

  • 🙋
    Hire a BuildShip Expert

    Need personalized help to build your product fast? Browse and hire from a range of independent freelancers, agencies and builders - all well versed with BuildShip.

  • 🛟
    Send a Support Request

    Got a specific question on your workflows / project or want to report a bug? Send a us a request using the "Support" button directly from your BuildShip Dashboard.

  • ⭐️
    Feature Request

    Something missing in BuildShip for you? Share on the #FeatureRequest channel on Discord. Also browse and cast your votes on other feature requests.