Function
The Function node allows you to add JavaScript within your flow. The function node has access to the {msg} object from the previous node and anything it returns will pass along as the {msg} object.
The function node also supports:
- Lodash
- MomentJS
For Example:
![Screen Shot 2015-12-15 at 11.59.21 AM.png 433](https://files.readme.io/W4AKuup7RGGlgFtFttRY_Screen%20Shot%202015-12-15%20at%2011.59.21%20AM.png)
Will send this message to the next node.
![Screen Shot 2015-12-15 at 11.59.27 AM.png 337](https://files.readme.io/ZHb6onGtQ0C1d7er9jxy_Screen%20Shot%202015-12-15%20at%2011.59.27%20AM.png)
You can even use MomentJS within the function node!
![Screen Shot 2015-12-15 at 11.59.34 AM.png 355](https://files.readme.io/RhYiykFsROSwV7DYjS3w_Screen%20Shot%202015-12-15%20at%2011.59.34%20AM.png)
Or use conditionals and much more!
![Screen Shot 2015-12-15 at 11.59.42 AM.png 353](https://files.readme.io/ArY6wz2T2WlN5C1gyb7w_Screen%20Shot%202015-12-15%20at%2011.59.42%20AM.png)
Sample Flows
https://app.octoblu.com/bluprints/import/aef6c835-e01f-42bc-addb-9a136712d54f
Updated less than a minute ago