EasyUse/Logic/Typegenerated
Range(Int)(RangeInt)
The Range(Int) node generates an integer range from a start value to a stop value and returns the first and last values of that range as two INT outputs.
Range Int
range
range_sizes
range_mode
step
start
0
stop
1
step
1
num_steps
0
end_mode
Inclusive
Easy Use
Description
The Range(Int) node generates an integer range from a start value to a stop value and returns the first and last values of that range as two INT outputs. It belongs to the EasyUse/Logic/Type category and is useful whenever you need the endpoints of an arithmetic progression, such as defining iteration bounds or generating numeric ranges for other logic nodes.
Inputs
| Name | Type | Default | Options | Description |
|---|---|---|---|---|
range_mode | COMBO | step | step, num_steps | Selects how the range is computed. step uses the explicit step value; num_steps derives the increment from the number of requested intervals. |
start | INT | 0 | The first value of the range. | |
stop | INT | 1 | The boundary value of the range. Whether it is included depends on end_mode. | |
step | INT | 1 | The increment between values when range_mode is step. Can be negative to generate a descending range. | |
num_steps | INT | 0 | The desired number of intervals when range_mode is num_steps. | |
end_mode | COMBO | Inclusive | Inclusive, Exclusive | Inclusive includes stop in the range; Exclusive stops just before stop. |
Outputs
| Output | Type | Description |
|---|---|---|
| First value | INT | The first value of the generated range. |
| Last value | INT | The last value of the generated range after applying range_mode, step/num_steps, and end_mode. |
Usage Notes
- Use
range_mode = "step"when you already know the exact increment you want between values. - Use
range_mode = "num_steps"when you want to divide the span fromstarttostopinto a specific number of intervals. end_modeis important whenstopmust or must not appear as the final value. For example,start = 0,stop = 10,step = 2, andend_mode = "Inclusive"produces a last value of10; withend_mode = "Exclusive"the last value is8.- Negative steps are supported. For a descending inclusive range, set
startabovestopand use a negativestep. - The outputs are scalar integers, not a list. The node returns the boundaries of the computed range, which can then be used by other logic or numeric nodes.
Comments
Sign in with GitHub to join the discussion.