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.