I hope I can make myself clear in English and in what I want to create. I first start with what I want.
I want to make a IBANcalculator that can generate 1-n IBANnum
You could use an array with associative arrays.
var variable = {
"countries" : [
{"countryname" : "Andorra",
"country code" : "AD",
"valid IBAN length" : "24",
"Bank/Branch Code (check1, bank, branch)": "0 4n 4n",
"Acount Number (check2, number, check 3)": "0 12 0"
},
{"countryname" : "België",
"country code" : "BE",
"valid IBAN length" : "16",
"Bank/Branch Code (check1, bank, branch)": "0 3n 0 ",
"Acount Number (check2, number, check 3)": "0 7n 2n"
}
]
};
You might want to check out JSON format http://www.json.org/.
For example, variable(countries[0]["countryname"]); prints out "Andorra".