CreateArray

Will create an array object in context from given string input

javascript · Common Scripts

Details

IDCreateArray
Languagejavascript
From Version5.0.0
TagsUtility

README

Creates an array object in context from a given string’s input.

Script Data


Name Description
Script Type javascript
Tags Utility

Inputs


Argument Name Description
arrayData The array data to create an array from (comma-separated). The default is “val1,val2,val3”.
separator The separator to use to split arrayData. The default is a comma (“,”).
contextKey The key to place result array in context. The default is “array”.

Outputs


There are no outputs for this script.

commonfields:
  id: CreateArray
  version: -1
name: CreateArray
script: ''
type: javascript
tags:
- Utility
comment: 'Will create an array object in context from given string input '
enabled: true
args:
- name: arrayData
  default: true
  description: 'This is the array data to create array from, should be in the format
    of comma separator by default: val1,val2,val3'
- name: separator
  description: Separator to use to split arrayData, by default will be comma ',' .
- name: contextKey
  description: The key to place result array in context, by default will be "array".
scripttarget: 0
fromversion: 5.0.0
tests:
- No tests (auto formatted)