createGTINSequence
Implementations
Microsoft Excel: AIDCT.GS1.createGTINSequence(prefixDefinition, startValue, count, sparse)
Google Sheets: Google Sheets: aidctGS1CreateGTINSequence(prefixDefinition, startValue, count, sparse)
Create a sequence of GTINs.
This function returns an array of values.
Parameters
| Name | Type | Description |
|---|---|---|
| prefixDefinition* | Any | Prefix definition, either a simple GS1 Company Prefix (as a string) or the result of a call to definePrefix. Any prefix type is supported. |
| startValue | Number | Start value of a domain of values to transform. |
| count | Number | Count of values to transform. If positive, values transformed are startValue to startValue+count-1. If negative, values transformed are startValue down to startValue+count+1. |
| sparse | Boolean | If true, value is mapped to a sparse sequence resistant to discovery. |
Parameters in italics are optional.
* This parameter accepts a single value or an array of values.