Iterating over a range of numbers

On further investigation, I’m sure your way is the proper way to do it. The following version is slightly more efficient:

(have $N count up from $Low to $High)
    ($N = $Low)
    (or)
    ($Low < $High)
    ($Low plus 1 into $Lp1)
    *(have $N count up from $Lp1 to $High)
1 Like