Message Boards Message Boards

Back

Parse a variable to manipulate punctuation

Toggle
I have added a "-" between words from a variable but it adds one after the final word, how do I not have that final "-" display?
0 (0 Votes)

RE: Parse a variable to manipulate punctuation
Answer
7/22/26 5:47 PM as a reply to Julie Longshore.
I assume you have a setup like this (picture 1)?

You have two options: 
  1. During your loop, don't add the last dash (see solution 1).
  2. After your loop, when your text is complete, just delete the last character (well, get a segment of the text from the beginning all the way to the end, minus 1). These blocks are under Advanced > Text. Note that the segment block takes indexes starting at 0, instead of 1 like most of the other places in SmartBuilder. We may correct this in the future, but I'm not sure how many people are using it in its current state, so we may just leave it. (see solution 2).

Hope that helps!
0 (0 Votes)