07.09.2014, 12:54
I'm putting an import/export thing into my script, and they have to type in the amount to export. And I have to divide that equally depending on how many countries they have listed.
It could be:
- 3 Countries
- 6 Countries
- 9 Countries
- 12 Countries
- 15 Countries
- 18 Countries
- 20 Countries
I need to know how to automatically divide the amount they type in, because selecting countries will be in another dialog. It could be an even, or an odd number. And if it's an odd number, then I need to automatically divide it into very similar numbers.
Thanks.
It could be:
- 3 Countries
- 6 Countries
- 9 Countries
- 12 Countries
- 15 Countries
- 18 Countries
- 20 Countries
I need to know how to automatically divide the amount they type in, because selecting countries will be in another dialog. It could be an even, or an odd number. And if it's an odd number, then I need to automatically divide it into very similar numbers.
Thanks.