Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: KellyRay on November 04, 2015, 03:59:59 PM

Title: ArrayMaker Split String To Array[SOLVED]
Post by: KellyRay on November 04, 2015, 03:59:59 PM
Hi friends,

I'm attempting to split a string into a char array using ArrayMaker. So for example I'd like to take a word like "apple" and split it into:

0 = a
1 = p
2 = p...

And so forth

I think I'm on to something using the Split Text to Array action, however, I'm unsure how to break the string into individual characters.

Any thoughts on this?
Title: Re: ArrayMaker Split String To Array
Post by: terri on November 04, 2015, 05:03:37 PM
you can use the get substring action.
keep the length at 1 and iterate through the start index one by one
Title: Re: ArrayMaker Split String To Array
Post by: KellyRay on November 04, 2015, 05:08:36 PM
Brilliant! Thank you.

Hadn't thought of that.