For

angerangel edited this page Jan 3, 2013 · 1 revision
Clone this wiki locally

USAGE

   FOR 'word start end bump body

DESCRIPTION

Evaluate a block over a range of values. (See also: REPEAT)

FOR is a native value.

ARGUMENTS

  • word -- Variable to hold current value (word!)
  • start -- Starting value (series! number!)
  • end -- Ending value (series! number!)
  • bump -- Amount to skip each time (number!)
  • body -- Block to evaluate (block!)

#SOURCE

for: make native! [  [
    {Evaluate a block over a range of values. (See also: REPEAT)}
    'word [word!] "Variable to hold current value"
    start [series! number!] "Starting value"
    end [series! number!] "Ending value"
    bump [number!] "Amount to skip each time"
    body [block!] "Block to evaluate"
] ]