# Subflows. Inputs and outputs not matching between machines

**URL:** <https://discourse.nodered.org/t/subflows-inputs-and-outputs-not-matching-between-machines/15147>\
**Category:** General\
**Created:** [5 September 2019 11:09 UTC](https://discourse.nodered.org/t/subflows-inputs-and-outputs-not-matching-between-machines/15147 "2019-09-05T11:09:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [5 September 2019 11:37 UTC](https://discourse.nodered.org/t/subflows-inputs-and-outputs-not-matching-between-machines/15147/4 "2019-09-05T11:37:28Z")

</div>

(not wanting to babble on)

Ok, reading that link and sub-link to [Button icons example](https://discourse.nodered.org/t/examples-of-colour-change-button-and-switch/3650) I already am . . . confused with the flow.

In the `function` node:  
`var state = context.state || false;`

I went through a horrible learning curve with context stuff.

I thought it should be:  
`var state = context.get("state") || false;`

I shall have to let that slip as a _slicker way_ to do it.  
But just saying when I see things like that, it makes a smooth journey less smooth.

---

_[View the full topic](https://discourse.nodered.org/t/subflows-inputs-and-outputs-not-matching-between-machines/15147)._
