ComfyUI Node

_.range

A function to create flexibly-numbered lists of integers, handy for each and map loops. start, if omitted, defaults to 0; step defaults to 1 if start is before stop, otherwise -1. Returns a list of integers from start (inclusive) to stop (exclusive), incremented (or decremented) by step.

By sfinktah·Created 12 months ago·Updated 9 months ago· 6
_.range
  • py_list
  • LIST
start0
stop0
step1
Categoryovum/underscore

Inputs (4)

NameTypeDefaultDescription
py_listopt*Primary input object (expected array). You can still pass any JSON-serializable value. Also accepts _.CHAIN to continue chaining.
startoptINT0start (int)
stopoptINT0stop (int)
stepoptINT1step (int)

Outputs (1)

NameTypeDescription
LISTLIST