© Copyright 2023, Astera Software
Example
In this example, we will pass the required parameter to the function transformation object using a Variables object.
Where,
str = 90001
In the output window, you can see that Astera has returned “True”, as the specified string matches a valid US Zip Code format.
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.