StringToArray_v2 Op

StringToArray

Parse a string into an array (create, split string, stringToArray)


Let’s you enter multiple values as an array in the editor. The result can then be used by e.g. Ops.Array.ArrayGetString or Ops.Array.ArrayGetNumber.


Full Name
  • Ops.Array.StringToArray_v2
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


Example Patch Array Sum

Open In Editor

Youtube Video Tutorial

INPUT PORTS


text (String)

The array-data you want to use, e.g. 100,200,300

separator (String)

The separator to use, e.g. , (comma) when your text is foo,bar,baz

Numbers (Number: boolean)

If set, the values inside the array will be interpreted as numbers (not strings)

Trim (Number: boolean)
Split Lines (Number: boolean)

OUTPUT PORTS


array (Array)

The parsed array

Parsed (Trigger)

Triggers once the array has been parsed

length (Number)

The number of elements in the resulting array


Changelog

Patches using StringToArray_v2

  • Examples
  • Public
  • My Patches