0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Convert → Nation ISO Switch

AI-generated

Overview

This node operation converts between nation names and their corresponding ISO Alpha-3166 codes. It supports two main operations: converting a full nation name in English to its ISO code, and converting an ISO code back to the nation name. This is useful in scenarios where standardized country codes are required for data processing, reporting, or integration with other systems that use ISO codes.

Use Case Examples

  1. Convert 'Germany' to 'DE' using the Nation to ISO operation.
  2. Convert 'DE' to 'Germany' using the ISO to Nation operation.

Properties

Name Meaning
Code Variables Allows adding multiple code variables with names and values, which can be used in the code editor for the selected function.
Operation Selects the conversion direction: 'Nation to ISO' converts a nation name to its ISO code, 'ISO to Nation' converts an ISO code to the nation name.
Nation Value The full name of the nation in English, used when converting from nation name to ISO code.
ISO Value The ISO Alpha-3166 code of the nation, used when converting from ISO code to nation name.

Output

JSON

  • nation - The full name of the nation in English language.
  • iso - The ISO Alpha-3166 code of the nation.

Dependencies

  • An API key credential for the codeKit API is required to perform the conversion requests.

Troubleshooting

  • Ensure the input nation name is the full English name and correctly spelled to get accurate ISO code conversion.
  • Ensure the ISO code is a valid ISO Alpha-3166 code (e.g., 'DE' for Germany) when converting to nation name.
  • If the API key credential is missing or invalid, the node will fail to perform the conversion.
  • If the input parameters are missing or empty, the node will throw an error. Make sure to provide the required inputs based on the selected operation.

Discussion