Skip to main content
Version: v0.0.2

Type Alias: LoopMax

LoopMax = number | ">1"

Repetition count for a segment or child loop inside its parent. ">1" means many (TR3 typically writes >1 to mean "no cap"). A finite max surfaces as the numeric value. Phase 2 stores the value; Phase 3+'s loop walker uses it for over-limit warnings.

Example

import type { LoopMax } from "@cosyte/x12";
const single: LoopMax = 1;
const many: LoopMax = ">1";