To is used in the For syntax to indicate the limit of a loop value. It was also used by syntaxes that are now deprecated.
To
Sage Support Hub (opens in a new tab)
Product support community (opens in a new tab)
Date published: 18 December 2025