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')
AN
>>> CountryAlphaCode('AND')
AN
>>> CountryAlphaCode('124')
CA