Skip to main content
The Numeric Sequence Generation command (Command Type: 1302) generates a sequence of numbers with a specified step size between start and end values.

Command Type

Command Type ID: 1302

Parameters

ParameterTypeDescriptionRequired
startstringThe first number in the sequenceYes
endstringThe last possible number in the sequence (inclusive)Yes
stepnumberThe increment between each number in the sequenceYes
keystringWhere to store results. Possible values: "data", "children", "local_variables"Yes
output_parameter_namestringOptional custom name for the output fieldNo

Usage Examples

Generate 1 to 10

{
  "command": "numeric-sequence-generation",
  "params": {
    "start": "1",
    "end": "10",
    "step": 1,
    "key": "children"
  }
}

Generate Even Numbers

{
  "command": "numeric-sequence-generation",
  "params": {
    "start": "2",
    "end": "20",
    "step": 2,
    "key": "data"
  }
}

Generate Pages for Pagination

{
  "command": "numeric-sequence-generation",
  "params": {
    "start": "1",
    "end": "50",
    "step": 1,
    "key": "children",
    "output_parameter_name": "page"
  }
}