Skip to main content

LOOP.BAD_RANGE

Error code LOOP.BAD_RANGE, raised by runner. Area: LOOP.

What it means​

  • '…' must be a whole number, got …
  • from_index and to_index cannot be negative
  • step must be 1 or more for this iterator, got …

What to do​

  • Use 0, 1, 2 ...
  • Indexes start at 0.
  • Use 1 to visit every item, 2 for every second item.

In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.

Search words: LOOP BAD_RANGE bad range