info(“countrycode”)
info(“countrycode”)

The info(“countrycode”) function returns the country code for the current location.

Description

This function returns the country code for the current location. This is a two letter code, for example US, GB, DE etc. The result of this function will immediately reflect any changes made in the System Preferences Language & Region panel.

    info("countrycode") ☞ US

See Also

- info("currencycode") -- returns the currency code for the current location.
- info("currencysymbol") -- returns the currency symbol for the current location.
- info("decimalseparator") -- returns the current decimal separator character (period or comma).
- info("languagecode") -- returns the language code for the current location.
- info("measurementsystem") -- returns the measurement system for the current location.
- info("thousandsseparator") -- returns the current thousands separator character (period or comma).

History

Version | Status | Notes
10.0 | New | New in this version.