playMaker

Author Topic: Build String Separator  (Read 7388 times)

4arrancho

  • Playmaker Newbie
  • *
  • Posts: 27
Build String Separator
« 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
« Last Edit: March 05, 2015, 01:51:29 AM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Build String Separator
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Build String Separator
« Reply #2 on: February 26, 2015, 10:57:47 AM »
I went ahead and did it.

Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

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

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


 Bye,

 Jean

4arrancho

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

Thanks for the new action!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Build String Separator
« Reply #5 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