Playmaker Forum
PlayMaker Updates & Downloads => Official Action Updates => Topic started 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
-
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.
-
I went ahead and did it.
-
Hi,
Thanks Lane, I have pushed it on the Ecosystem (http://hutonggames.com/playmakerforum/index.php?topic=7374.msg35684#msg35684), under BuildString2
Bye,
Jean
-
The example i gave was just to explain what i mean.
Thanks for the new action!
-
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