# zipcode\_lookup.csvpaths

{% hint style="success" %}
Run this example using its test data from within [FlightPath Data](https://www.flightpathdata.com/).
{% endhint %}

```
~
  This csvpath iterates a CSV or Excel file and looks up the zipcode for Boston 
  for every line.

  To run this example, first follow the steps in index_zipcodes.csvpaths to create 
  the index. Then do these steps: 
     1. Load this csvpaths file as a named-paths group call zip_lookup
     2. Run the zips named-file against zip_lookup 

   id: zip lookup
   validation-mode:raise,print
~
$[1*][ 
    @a = $bigzips.variables.zipcodes.Boston
    ~ we again want the variables but not the data, so we reject all lines ~
    no()
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.csvpath.org/getting-started/the-flightpath-data-examples/lookups/zipcode_lookup.csvpaths.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
