miller/docs6b/docs/if-example.mlr
John Kerl 11eac853d2
First pass at converting Miller 6 docs from Sphinx to Mkdocs (#616)
* Accept more passing emit cases

* Port docs from sphinx to mkdocs

* iterating

* rephrase internal-link syntax using mkdocs

* iterating
2021-08-04 01:54:01 -04:00

13 lines
170 B
Text

begin {
@count_of_red = 0;
@sum_of_red = 0
}
if ($color == "red") {
@count_of_red += 1;
@sum_of_red += $quantity;
}
end {
emit (@count_of_red, @sum_of_red)
}