Playmaker Forum

PlayMaker Updates & Downloads => Official Action Updates => Topic started by: 4arrancho on February 26, 2015, 09:44:01 AM

Title: Build String Separator
Post by: 4arrancho on February 26, 2015, 09:44:01 AM
Hi

Small question. In the build string action why the separator value also appears in the end?

If i have 2 strings;
string1: "Thank";
string2: "Jean";
separator: " you "

The result i get is: "Thank you Jean you " instead of "Thank you Jean"

Please help me cause i don't know how to code

Thanks
Title: Re: Build String Separator
Post by: Lane on February 26, 2015, 09:58:27 AM
It adds a separator for each string part. So what happens is you have two string parts and each one will get a separator on the end. In your case it is a word "you" and is pretty awkward.

Its intended purpose is probably spaces, or underlines or something where adding it at the end of each part is not an issue and unnoticeable on the end.

I can adjust this for loop to fix this, unless Jean elects to do it.
Title: Re: Build String Separator
Post by: Lane on February 26, 2015, 10:57:47 AM
I went ahead and did it.

Title: Re: Build String Separator
Post by: jeanfabre on March 05, 2015, 02:01:27 AM
Hi,

 Thanks Lane, I have pushed it on the Ecosystem (http://hutonggames.com/playmakerforum/index.php?topic=7374.msg35684#msg35684), under BuildString2


 Bye,

 Jean
Title: Re: Build String Separator
Post by: 4arrancho on March 05, 2015, 07:40:05 PM
The example i gave was just to explain what i mean.

Thanks for the new action!
Title: Re: Build String Separator
Post by: jeanfabre on March 06, 2015, 02:54:03 AM
Hi,

 yep, and that is definitly something that is a bug or at least mabye not the most intuitive way ( a separator by defintion isn't a prefix or a suffix, so it should not be there as the last bit in the final composed string)

 Bye,

 Jean