How to add zip code of a particular country when country are selected randomly?

  • Автор темы Автор темы apeee
  • Дата начала Дата начала

apeee

Новичок
Регистрация
23.05.2011
Сообщения
22
Реакции
1
Баллы
0
I have seen the video at http://www.youtube.com/watch?v=xXP2Bs4PiMA which explains on choosing from male and female name. Since there are only two choices here between male and female, I was wondering how should I go when there are more than two choices.

Suppose, while selecting country, I would like to select randomly either USA, UK, Canada or Australia. For each of these country it has its own zip code. So, how should I make ZennoPoster to use zip code of that country when randomly selected.
 
Each country should have a value when selected.

1 for US
2 for UK
3 for Canada

You could either split a string, therefore you would have to config your code listings like this.

1:10001 (New York)
1:90210 (Beverly Hills)
3:M5X1H3 (Toronto)
===================================
That would work, but I would also be interested in the more efficient result using the logic....
 
Nice idea. It will work. But I will have to add the country value by myself and if there are many countries and many zip codes then it would be tedious.

I'm also looking for some way to do it with "logic operation" so that I can apply the similar solution to any similar problem.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)