Skip to content Skip to sidebar Skip to footer

Combining Strings

I am new to Google Apps Script and am trying to combine a series of strings. I have two strings that need to go before and after an inputted cell. if B4 = 'string2' the result of

Solution 1:

Strings are very easy to assemble in JavaScript, simply add them using +

From your example :

"string1"+" "+string2+" "+"string3"

Alternatively you can use the .concat method that does exactly the same.


Post a Comment for "Combining Strings"