# Inserting a new line in a string

**URL:** https://community.synatic.com/t/inserting-a-new-line-in-a-string/286
**Category:** Calculators
**Tags:** calculator
**Created:** [September 1, 2022, 8:16pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286 "2022-09-01T20:16:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mc\_lwcc](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mc\_lwcc](https://community.synatic.com/u/mc_lwcc)
#### Post date: [September 1, 2022, 8:16pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/1 "2022-09-01T20:16:52Z")

</div>

Is there a way to introduce a new line character in a string variable?

I tried several variations on the new line character but they all resulted in errors.

```auto
"\n"
"\\n"
"\\\\n"

```

I am trying insert a new line between two text variables in a calculator step. Here is the latest iteration of the code:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/9548e4a6196b62ba15b68350156647787ac23afe.png)

I decided to break it out into part A and B because it was getting confused with the if then else statement.

I would like for the value of Full\_Description to be:

```auto
Description_part_A
Description_part_B

```

Like I said they all resulted in the following error at the calculator step.  
 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/8ed45a424e8205aa0ab29eaf7f8762d6acbae478.png)

---

<div class="post-metadata">

### Author: ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)
#### Post date: [September 2, 2022, 12:56pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/2 "2022-09-02T12:56:06Z")

</div>

Hi Mark,

We’ll investigate and revert.

Kind regards

---

<div class="post-metadata">

### Author: ![mc\_lwcc](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mc\_lwcc](https://community.synatic.com/u/mc_lwcc)
#### Post date: [September 2, 2022, 1:05pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/3 "2022-09-02T13:05:25Z")

</div>

So the semicolon issue is not an issue anymore. I had inserted one in the middle of a JSON object. That was the result of the error message.

I still have the question as to how do you insert the new line into a string.

Thanks.

---

<div class="post-metadata">

### Author: ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)
#### Post date: [September 2, 2022, 1:07pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/4 "2022-09-02T13:07:33Z")

</div>

Hi Mark,

Understood. We are still investigating and testing. I’ll revert as soon as we have a solution.

Kind regards

---

<div class="post-metadata">

### Author: ![mc\_lwcc](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mc\_lwcc](https://community.synatic.com/u/mc_lwcc)
#### Post date: [September 2, 2022, 1:21pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/5 "2022-09-02T13:21:06Z")

</div>

Sorry to bug you, but everything is good now. I seem to suffer from shooting myself in the foot quite a bit recently. 🙂 I had variables that were mislabeled so they would never work in the fashion.

I was able to add the new line character. I just have to figure out how to get DevOps to listen to the character.

Thanks again.

---

<div class="post-metadata">

### Author: ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)
#### Post date: [September 2, 2022, 2:19pm UTC](https://community.synatic.com/t/inserting-a-new-line-in-a-string/286/6 "2022-09-02T14:19:51Z")

</div>

Hi Mark,

That’s great! 🙂 Can you please email me the org name, solution name and flow name? I can have a look and then revert.

You can either send it to [support@synatic.com](mailto:support@synatic.com) or [navessa@synatic.com](mailto:navessa@synatic.com)
