Hi Guys,
I know very little of functions or syntax so I Would appreciate any help in building a function for my HTML webpage.
Basically the function should receive one argument ({{CountryCode}}) and return a number (which is the country code ID predefined below)
Country code ID:
US = “2105”
UK = “1103”
GER = “704”
ESP = “1918”
AUS = “115”
CAN = “304”
Country code: (function argument)
US
UK
GER
ESP
AUS
CAN
The function should compare the Country code argument to a list of Country codes predefined and return the country code ID value.
To better explain myself for instance lets say that the argument received is “US”. the function should go over the list of country codes and return the value “2105”
Function header should look like this:
GetCountryID ({{CountryCode}}) {
}
Would appreciate your help.