# IsUSZipCode

| **Name**    | ***IsUSZipCode***                                                                                                                                                                               |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | IsUSZipCode (String str)                                                                                                                                                                        |
| Purpose     | To return a Boolean value indicating whether the specified string is in a valid Zip Code format.                                                                                                |
| Description | Checks whether a given value represents a valid United States Zip Code format. This method tests format and digits to determine whether the given string represents a valid US Zip code format. |
| Return Type | Boolean                                                                                                                                                                                         |
| Parameter   | str \[System.String] – Value to be checked.                                                                                                                                                     |

![](/files/Qez3p1VL5nX2DDNOoQFt)

**Example**

In this example, we will pass the required parameter to the function transformation object using a *Variables* object.

Where,

*str* = 90001

![](/files/Zp9IpyMe9OmxOjnb0xOK)

In the output window, you can see that Astera has returned “True”, as the specified string matches a valid US Zip Code format.

![](/files/JBpSn6UEiKfExGGhBvHA)


---

# 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://documentation.astera.com/astera-data-stack-v10/functions/regular-expressions/isuszipcode.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.
