Middle has introduced two new workflow parameters, Splitlines and Duplicate to Sibling Node, that help streamline workflow building and accuracy.
Splitlines: Transform Strings into Arrays
The Splitlines parameter is designed to break a string into an array of strings using a new line as a separator. This makes it easier to work with text lists by converting them into structured arrays, which can then be used in comparisons and further processing.
- When a multi-line string is passed through Splitlines, each line becomes an individual item in an array.
- Leading and trailing whitespace is automatically removed from each line.
- Right-hand comparisons use "Includes" to check if the array contains a specific value
- Left-hand compairsons use "Contains" to check if a vlaue exists within the array.
- Splitlines text can be used as an array with any of Middle’s array manipulation tools.
Duplicate to Sibling Node
Middle now allows users to quickly duplicate parameters within their workflows using two new options:
- Duplicate to Sibling Node Parameter Before – Duplicates the selected parameter and places the copy above the original parameter.
- Duplicate to Sibling Node Parameter After – Duplicates the selected parameter and places the copy below the original parameter.
This update simplifies the process of working with complex workflows, allowing users to quickly replicate parameters without manually recreating them. Whether you're fine-tuning automation rules or testing different conditions, this feature saves time and effort.
For more details, check out Middle’s parameter documentation.