There will probably come a time when your pg-language problem
will require cases be handled or answers be computed via iterative
methods. Here are a few basics to get you going.
A few samples should allow you to infer the syntax:
verbatim41#
You can add multiple conditions if need be:
verbatim42#
A simple loop construction:
verbatim43#
The syntax 9 says
that for all statements between the braces, execute the statement
first with 10, then increment 11 by one
(12), then repeat until you have processed the block with
13.