# Noob set flow variable question

**URL:** <https://discourse.nodered.org/t/noob-set-flow-variable-question/40245>\
**Category:** General\
**Created:** [2 February 2021 14:57 UTC](https://discourse.nodered.org/t/noob-set-flow-variable-question/40245 "2021-02-02T14:57:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [2 February 2021 15:27 UTC](https://discourse.nodered.org/t/noob-set-flow-variable-question/40245/4 "2021-02-02T15:27:31Z")

</div>

You cannot do a 'set if not defined' type of rule in the Change node, but aside from that, you can set a flow context value. In the screenshot you've shared, I can see you were using `msg.paylod` and not `msg.payload`.

---

_[View the full topic](https://discourse.nodered.org/t/noob-set-flow-variable-question/40245)._
