This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

CountryAlphaCode

CountryAlphaCode(code): String

Lookup country alpha code by numeric or alpha3 code.

Table 1. Parameters

code

Numeric (3 digits) or 3-letter country code.

Return

Two letter country code or null if country not found.

>>> CountryAlphaCode('020')
AD
>>> CountryAlphaCode('AND')
AD
>>> CountryAlphaCode('124')
CA