# Code works in function, but not in a Change Node?

**URL:** <https://discourse.nodered.org/t/code-works-in-function-but-not-in-a-change-node/28382>\
**Category:** General\
**Created:** [16 June 2020 02:12 UTC](https://discourse.nodered.org/t/code-works-in-function-but-not-in-a-change-node/28382 "2020-06-16T02:12:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [16 June 2020 02:30 UTC](https://discourse.nodered.org/t/code-works-in-function-but-not-in-a-change-node/28382/2 "2020-06-16T02:30:48Z")

</div>

Please edit your message to include your flow  
snippet between three backticks using the code block icon `</>`. See [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506). Otherwise it cannot be imported.

---

_[View the full topic](https://discourse.nodered.org/t/code-works-in-function-but-not-in-a-change-node/28382)._
