SPLIT Operation

How to use the SPLIT operation for Computed Attributes

Definition
Example
Syntax Guide 
Formula In Use

 


Definition

SPLIT is an operation that will split a string into substrings based on a delimiter. The result is returned as an array of substrings. This can help you format data correctly for certain output requirements where a string/plain text needs to be an array.


Example

$LABEL = 'h-e-l-l-o'

SPLIT($LABEL, "-")

 

Result:

['h', 'e', 'l', 'l', 'o']


Syntax Guide

SPLIT(string, separator)

string - The string you want to split

separator - Specifies the separator to use when splitting the string


Formula In Use

 

split-formula


What's next? 

 

If you have any questions just click on the chat box in the bottom-right corner and we'll be happy to answer them...

and please let us know 👇