Add Nodes/String/Split
parent
5fac7c4616
commit
d4739e8d9b
35
Nodes%2FString%2FSplit.md
Normal file
35
Nodes%2FString%2FSplit.md
Normal file
@ -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.
|
Loading…
x
Reference in New Issue
Block a user