commonfields: id: LastArrayElement version: -1 name: LastArrayElement script: '' type: javascript tags: - general - transformer - entirelist comment: Returns the last element of an array. If the value passed is not an array, it returns the original value that was passed. enabled: true args: - name: value required: true default: true description: An array for which to return the last value. isArray: true scripttarget: 0 isllm: false runas: DBotWeakRole tests: - TestGetArrayElements fromversion: 5.0.0