Skip to content

: for

Perform an integer for loop, e.g. :for i 1 10 print({i})

Usage: : for [OPTIONS] <BINDING> <FROM> <TO> <EXPRESSION>...

Arguments

Name Description Possible values Default
<BINDING> Variable binding for the for loop
<FROM> Value to start at
<TO> Value to end at (inclusive)
<EXPRESSION> The expression to evaluate. Use e.g. {var} to use the for loop binding, if you named it var

Options

Name Description Possible values Default
-s
--step
Step size (cannot be 0) 1