playMaker

Author Topic: Build String Separator  (Read 2053 times)

4arrancho

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Build String Separator
« on: February 26, 2015, 07: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
« Last Edit: March 04, 2015, 11:51:29 PM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Build String Separator
« Reply #1 on: February 26, 2015, 07: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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Build String Separator
« Reply #2 on: February 26, 2015, 08:57:47 AM »
I went ahead and did it.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Build String Separator
« Reply #3 on: March 05, 2015, 12:01:27 AM »
Hi,

 Thanks Lane, I have pushed it on the Ecosystem, under BuildString2


 Bye,

 Jean

4arrancho

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: Build String Separator
« Reply #4 on: March 05, 2015, 05:40:05 PM »
The example i gave was just to explain what i mean.

Thanks for the new action!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Build String Separator
« Reply #5 on: March 06, 2015, 12: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