# Sorry to ask again, I can't find my original post

**URL:** <https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996>\
**Category:** General\
**Created:** [12 January 2021 10:53 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996 "2021-01-12T10:53:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [12 January 2021 10:53 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/1 "2021-01-12T10:53:17Z")

</div>

What is the trick to access `global` variables form within a `change` node?

I was wanting to do maths things to it and so to simply set/get it I would then need a `function` node, but someone posted me how to do it.

I seem to remember it was in the `J:` part of the change node.

But I have tried searching the flows and couldn't find it so I tried searching for my question and (alas) also couldn't find it.

Sorry folks.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [12 January 2021 11:01 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/2 "2021-01-12T11:01:57Z")

</div>

In a JSONata Expression you can do `$globalContext("FOO")`

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [12 January 2021 11:05 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/3 "2021-01-12T11:05:53Z")

</div>

Thanks.

I don't think that was how I was shown.

It looked something like:

`J:` for the _type_ of entry in the line. Then something like:  
`{("global.foo")} * 3`

But as I am not sure for what it is I am searching, it makes it difficult to search the flows.

Will a search search in a `change` node for stuff typed?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [12 January 2021 11:08 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/4 "2021-01-12T11:08:56Z")

</div>

Found it!

This is how I was shown.

```auto
[{"id":"843af767.23caa8","type":"switch","z":"9b7e7466.a4b698","d":true,"name":"EXTREME HEAT 1","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"$globalContext(\"Shutdown_temperature\")-10","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":1,"x":1865,"y":340,"wires":[["5da5a554.5275ac"]]}]

```

Ok, the node is disabled. But that is how it was shown to me.

Sorry for not remembering.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [12 January 2021 11:10 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/5 "2021-01-12T11:10:05Z")

</div>

Actually you probably are/were right. I just didn't see it as it would be shown in the node.

Thanks again though.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 January 2021 11:10 UTC](https://discourse.nodered.org/t/sorry-to-ask-again-i-cant-find-my-original-post/38996/6 "2021-01-26T11:10:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
