Here is an example of how to use JavaScript string arrays in Axure.
This is much easier than trying to hand-craft similar functionality natively.
JavaScript Arrays.rp (58.7 KB)
You can test this out on the Axure cloud if you like.
Best regards,
Jeremy.