# Subflow environment variables and instance variables

**URL:** <https://discourse.nodered.org/t/subflow-environment-variables-and-instance-variables/51192>\
**Category:** General\
**Created:** [18 September 2021 08:12 UTC](https://discourse.nodered.org/t/subflow-environment-variables-and-instance-variables/51192 "2021-09-18T08:12:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [18 September 2021 09:18 UTC](https://discourse.nodered.org/t/subflow-environment-variables-and-instance-variables/51192/2 "2021-09-18T09:18:17Z")

</div>

I am not sure if this is going to create an _infinite loop_, but here goes.

(I only say this because you participated in it slightly)

[Maybe a useful thread on subflows](https://discourse.nodered.org/t/sample-flow-on-how-to-setup-environment-variable-in-a-sub-flow/25341)

---

_[View the full topic](https://discourse.nodered.org/t/subflow-environment-variables-and-instance-variables/51192)._
