-
Notifications
You must be signed in to change notification settings - Fork 2
Split Node
kleer001 edited this page Feb 6, 2025
·
1 revision
A versatile node for splitting lists of strings into two parts based on various expressions. Takes a list of strings as input and splits it into selected items and remaining items using either list selection or random selection expressions.
Enables/disables the node's functionality.
Expression defining how to split the input list. Supports two expression types:
Uses Python-style list slicing syntax: [index] or [start:end:step]
-
[0]- Selects the first item -
[-1]- Selects the last item -
[1:3]- Selects items at indices 1 and 2 -
[::2]- Selects every other item -
[::-1]- Selects all items in reverse order -
[1:]- Selects all items from index 1 onwards -
[:-1]- Selects all items except the last one
Format: random(seed[,count])
-
'time'for time-based randomization - A number for deterministic randomization
-
random(time)- Randomly selects 1 item using current time as seed -
random(42)- Randomly selects 1 item using seed 42 -
random(time,3)- Randomly selects 3 items using current time as seed -
random(42,5)- Randomly selects 5 items using seed 42
Items that match the split expression criteria.
Items that weren't selected.
Always empty list (reserved for future use).
- Invalid or empty split expressions route all items to Selected Items output
- Order is maintained within both selected and remaining outputs
- Random selection count is capped at input list length