website logo
Navigate through spaces
ChartHop documentation
⌘K
ChartHop Help Center
Getting around in ChartHop
ChartHop for Employees
Implementing ChartHop
ChartHop for Administrators
Carrot reference
ChartHop for Developers
Partners
Release notes
Resources
Docs powered by archbee 
website logo

split()

Divides a String into a list of Strings.

Syntax

split(string, delimiter)

  • string - the String value to be divided into an array of sub-Strings
  • delimiter - the character or set of characters that indicate where to split the input String
  • Return type: List

Sample usage

split("I am a string", ' ') returns a list of component Strings consisting of I, am, a, and string

split("This-is-text", '-')[2] returns text

Supported data types

Input type

Return type

Logic

String

List, optionally String

If a String is passed, that String will be parsed into an array (list) of component Strings. Specifying the array index will return the String value of that index.

Unsupported data types

Null

Unsupported data types return Null.



Updated 03 May 2023
Did this page help you?
Yes
No
PREVIOUS
monthStart()
NEXT
vestValue()
Docs powered by archbee 
TABLE OF CONTENTS
Syntax
Sample usage
Supported data types