From d4739e8d9bc2896254416e7d5c63f4cc199f88cd Mon Sep 17 00:00:00 2001 From: Chromum Date: Fri, 9 May 2025 09:59:54 +0000 Subject: [PATCH] Add Nodes/String/Split --- Nodes%2FString%2FSplit.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Nodes%2FString%2FSplit.md diff --git a/Nodes%2FString%2FSplit.md b/Nodes%2FString%2FSplit.md new file mode 100644 index 0000000..2315b82 --- /dev/null +++ b/Nodes%2FString%2FSplit.md @@ -0,0 +1,35 @@ +# String Split + +--- + +## 🔌 INPUT PORTS + +| Name | Type | Description | +|-----------------|-----------------|-----------------------------------------------------------------------------| +| `Source String` | `System.String` | The original string to split. | +| `Delimiter` | `System.String` | The delimiter used to split the string. Only the first occurrence is used. | + +--- + +## 📤 EXPORT PORTS + +| Name | Type | Description | +|---------------------|-----------------|---------------------------------------------------------------------------| +| `Before Delimiter` | `System.String` | The portion of the string before the first occurrence of the delimiter. | +| `After Delimiter` | `System.String` | The portion of the string after the first occurrence of the delimiter. | + +--- + +## 📝 DESCRIPTION + +The **String Split** node splits a string into exactly **two** parts using the **first occurrence** of a specified delimiter. +This is useful for parsing commands, filenames, key-value strings, or any text with a predictable divider. + +This node is derived from [`BaseImageNode`](../../Nodes/BaseImageNode). + +--- + +## ⚠️ KNOWN ISSUES + +- If the delimiter is not found, the full source string is returned in `Before Delimiter` and `After Delimiter` is empty. +- If the delimiter is null or empty, no split occurs.