AppendIfNotEmpty

Append item(s) to the end of the list if they are not empty.

javascript · Filters And Transformers

Details

IDAppendIfNotEmpty
Languagejavascript
From Version6.0.0
Tagstransformer entirelist general

README

Append item(s) to the end of the list if they are not empty.

Script Data


Name Description
Script Type javascript
Tags transformer, entirelist, general

Inputs


Argument Name Description
value The list to which we will add the items.
item Item(s) to append. Comma separated supported.
raw Set to true if you want to append item(s) without separating them by comma

Outputs


There are no outputs for this script.

args:
- description: The list to which we will add the items.
  isArray: true
  name: value
- description: Item(s) to append. Comma separated supported.
  isArray: true
  name: item
- auto: PREDEFINED
  defaultValue: "true"
  description: Set to true if you want to append item(s) without separating them by comma
  name: raw
  predefined:
  - "true"
  - "false"
comment: Append item(s) to the end of the list if they are not empty.
commonfields:
  id: AppendIfNotEmpty
  version: -1
contentitemexportablefields:
  contentitemfields:
    fromServerVersion: ""
enabled: true
name: AppendIfNotEmpty
runas: DBotWeakRole
script: ''
scripttarget: 0
isllm: false
tags:
- transformer
- entirelist
- general
type: javascript
fromversion: 6.0.0
tests:
- AppendIfNotEmpty - Test