English
Range
About 150 wordsLess than 1 minute
2026-01-09
Range
While for loops are not supported in custom functions, you can use Range to implement loop logic.
Summary
Definition:
Range range = Ranges.of(Integer start,Integer end)
range.each{
}
```text
Note: Maximum 500 iterations allowed.
Example:
```text
Range range = Ranges.of(1,5)
range.each{ it ->
log.info(it)
}
//[1,2,3,4,5]
```text
## Changelog
| Version | Date | Changes | Author |
| --- | --- | --- | --- |
| v1.0 | 2026-05-20 | Initial version | |
## Background
This document provides detailed information about the Range API functionality and usage, helping developers integrate relevant capabilities.
## Applicable Scenarios
Specific applicable scenarios are determined by actual business needs. Developers can select the appropriate API for integration as required.
## Prerequisites
- Access to Fxiaoke Open Platform
- Application authorization and configuration completed
- Basic knowledge of relevant business domain
## Steps
Please refer to the detailed instructions for each API.
> **Compatibility:** This version currently has no deprecated or compatibility notes.