Skip to content

Instantly share code, notes, and snippets.

View HaroldPetersInskipp's full-sized avatar
💉
Social Distancing

Inskipp HaroldPetersInskipp

💉
Social Distancing
View GitHub Profile
@HaroldPetersInskipp
HaroldPetersInskipp / flow.json
Created June 11, 2021 22:04
Learn function node examples
[{"id":"8bea4a66.a5f878","type":"tab","label":"Functions","disabled":false,"info":""},{"id":"a7c0f5a7.57ec9","type":"function","z":"8bea4a66.a5f878","name":"Data Types","func":"// DATA TYPES - String, Number, Boolean, null, undefined\nlet age = 31;\nlet fullname = 'Billy Bob';\nconst rating = 2.0;\nconst isCool = true;\nconst x = null;\nlet z; // undefined\n\n//STRINGS Template\nmsg.payload = 'My name is ' + fullname + 'and I am ' + age;\nreturn msg;\n// payload: \"My name is Billy Bob and I am 31\"","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":310,"y":140,"wires":[["72665eb8.21a3b"]]},{"id":"aa67ce7a.e018e8","type":"inject","z":"8bea4a66.a5f878","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":150,"y":140,"wires":[["a7c0f5a7.57ec9"]]},{"id":"72665eb8.21a3b","type":"debug","z":"8bea4a66.a5f878","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"f