Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@total

The @total keyword reads the active block's total iteration count.

Warning: @total is not the same as [step-count]. [step-count] reports the resolver's scheduled count and returns 0 for forever. @total returns <> for infinite repeaters.

@total is read-only. You may use it as a plain expression or with <@total>, but assigning to it is a compile-time error.

If no repeater is active, @total reads as 0.

[rep:3]{[eq: @total; 3] @break}
@true
[rep: forever]{[eq: @total; <>] @break}
@true