| 1 | <h2>Full example</h2> |
| 2 | <pre><code>source=monthly_data.csv |
| 3 | | rename remote_ip AS ip |
| 4 | | eval isLocal=if(cidrmatch("123.132.32.0/25",ip), "local", "not local") |
| 5 | | eval error=case(status == 200, "OK", status == 404, "Not found", true(), "Other") |
| 6 | `comment("TODO: Add support for more status codes")` |
| 7 | | sort amount</code></pre> |