chickadee » foof-loop » MINIMIZING

(MINIMIZING [(INITIAL <initial-minimum>)] ...)syntax
(MAXIMIZING [(INITIAL <initial-maximum>)] ...)syntax

Usage:

   (FOR <result> (MINIMIZING [(INITIAL <initial-minimum>)] ...))
   (FOR <result> (MAXIMIZING [(INITIAL <initial-maximum>)] ...))

Finds the minimum or maximum datum accumulated. If an initial value expression is provided, it is evaluated once before the beginning of the loop, all of the data involved must be real numbers, and <result> will be a real number. If no initial value is provided, the data must be either real numbers or false, and <result> will be either a real number or false.

<Result> is a loop variable.