cancel
Showing results for 
Search instead for 
Did you mean: 

Append string to a new line

njahagirdar
New Contributor

Hello All,

I am trying to append a new string value to the existing string value in the next line of the existing string, you may call it concatenation, but i am unable to do so, can someone please help me here.

String 1: This is my first project String 2: This is my second project.

Expectation is

This is my first project
This is my second project

1 REPLY 1

tlui
Former Employee

For a=foo and b=bar, if you do:
$a + ‘\n’ + $b

Result in json should be:
[{“output”:“foo\nbar”}]

Depending on your target system and how it renders newlines, that should work.