# TCP In node read 2 values how to separate into 2 different global variable?

**URL:** <https://discourse.nodered.org/t/tcp-in-node-read-2-values-how-to-separate-into-2-different-global-variable/81755>\
**Category:** General\
**Created:** [4 October 2023 07:33 UTC](https://discourse.nodered.org/t/tcp-in-node-read-2-values-how-to-separate-into-2-different-global-variable/81755 "2023-10-04T07:33:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 October 2023 09:18 UTC](https://discourse.nodered.org/t/tcp-in-node-read-2-values-how-to-separate-into-2-different-global-variable/81755/5 "2023-10-04T09:18:47Z")

</div>

Without seeing what you did, it's hard to tell you what you might have done wrong.

Create a small flow demonstrating your problem and export it and attach to a reply. (add a `debug` node to your `TCP` node to capture some data. Then put that in an `inject` node in the sample flow)

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/tcp-in-node-read-2-values-how-to-separate-into-2-different-global-variable/81755)._
