Relation:run
Runs a defined program.
Description
run name ((parameter (, parameter...)))
Parameters
name: any valid name
parameter: any expression
Examples
Using the sample relation films.csv .
| program yearlist(y) read "films.csv" select year = y end program set year 1960 while year < 1963 echo "''Films for year ".year."'''"' run yearlist(year) set year year + 1 end while |
Films for year 1960
| film | director | year |
|---|---|---|
| A bout de souffle | Godard | 1960 |
| Tirez sur le pianiste | Truffaut | 1960 |
Films for year 1961
| film | director | year |
|---|
Films for year 1962
| film | director | year |
|---|---|---|
| Cléo de 5 à 7 | Varda | 1962 |
| Jules et Jim | Truffaut | 1962 |
Comments
Programs operate directly on the stack. They do not return a value.
