Array & List Parsing
DataLoom Free supports parsing single-dimensional arrays and lists of primitive values directly from single spreadsheet cells.
Array Syntax
To input arrays (e.g. int[], float[], string[], List<string>) in a spreadsheet cell:
- Separate elements using semicolons (
;). - Avoid trailing semicolons unless you want to represent a blank/default final item.
Format Examples
| Target C# Field | Cell Value Example | Output Elements |
|---|---|---|
int[] statMods | 10;20;30 | [10, 20, 30] |
float[] factors | 1.5;3.0;0.5 | [1.5f, 3.0f, 0.5f] |
string[] tags | fire;weapon;epic | ["fire", "weapon", "epic"] |
List<string> names | Arthur;Lancelot | ["Arthur", "Lancelot"] |
Handling Whitespace
DataLoom automatically trims leading and trailing whitespace from individual array items. For instance, 10 ; 20 ; 30 parses exactly as [10, 20, 30] to prevent numerical conversion failures.