Description
Check item against first and last, including last only when includeLast is true.
Source-scoped cultural and historical records preserve an edition, naming convention, or local identifier. Literal agreement is useful bookkeeping but does not establish interpretation, authenticity, or authority.
Check item against first and last, including last only when includeLast is true.
When to use this tool
Use Archive Legajo Item Range Boundary when you need a precise source-token or range consistency check.
How to use the tool and how it works
- Enter item, first, last, includeLast. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read inRange, relativeIndex. Inspect inRange before interpreting the associated values.
Check item against first and last, including last only when includeLast is true. Return item minus first as relativeIndex regardless of membership.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| item | Item | Required. Safe integer. |
| first | First value or boundary under the stated formula. | Required. Safe integer. |
| last | Last | Required. Safe integer. |
| includeLast | Include Last | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| inRange | In Range | Required. Boolean. |
| relativeIndex | Relative Index | Required. Safe integer. |
{
"input": {
"item": 20,
"first": 10,
"last": 20,
"includeLast": true
},
"output": {
"inRange": true,
"relativeIndex": 10
}
} Limitations and assumptions
- A negative or out-of-range relativeIndex is diagnostic; no actual archive item or inclusive counting convention is verified.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Consult the source edition and relevant community or scholarly guidance before interpreting or reusing the material.
References
Similar or alternative tools
- Public Manuscript Ayah Range
Subtract firstAyah from lastAyah and add one when includeEnd is true.
- Public Ayah Range Overlap
Count the inclusive overlap as max(0, min(ends) - max(starts) + 1) across two ordered positive ayah ranges.