L-23 Function node as switch and change node

Опубликовано: 04 Август 2026
на канале: Industry 4.0 Simplified
18
1

🚀 Node-RED Tutorial Series | Lecture 23 – Function Node as Change Node & Function Node as Switch Node

Welcome to Lecture 23 of the complete Node-RED Tutorial Series, specially designed for IndiaSkills and WorldSkills competitors, automation engineers, students, and Node-RED enthusiasts.

In this lecture, you'll learn how to use the Function Node to perform the tasks of both the Change Node and the Switch Node. Instead of using multiple nodes, you'll write simple JavaScript code to modify messages, evaluate conditions, and route data to different outputs, making your flows more flexible and powerful.

📚 In this video you'll learn:
✅ How to use the Function Node as a Change Node
✅ Modify msg.payload, msg.topic, and other message properties
✅ Add, remove, and update message fields
✅ Use the Function Node as a Switch Node
✅ Route messages to multiple outputs using conditions
✅ Return different outputs from a single Function Node
✅ Practical automation examples
✅ Best practices for writing clean Function Node code

🎯 This series is specially designed for:

IndiaSkills Competition Preparation
WorldSkills Competition Preparation
PLC & Industrial Automation Students
Industry 4.0 Engineers
IoT Developers
Node-RED Beginners & Professionals

💡 By the end of this lecture, you'll understand how a single Function Node can replace both the Change Node and the Switch Node, helping you create smarter, cleaner, and more efficient Node-RED flows.


👍 If you found this video helpful:
✔ Like the video 👍
✔ Share it with your friends
✔ Subscribe for more Node-RED tutorials
✔ Turn on the notification bell 🔔

💬 Have a question or need help? Leave it in the comments—I’ll be happy to help!

#NodeRED #NodeREDTutorial #FunctionNode #ChangeNode #SwitchNode #JavaScript #IndustrialAutomation #IoT #PLC #Industry40 #Automation #IndiaSkills #WorldSkills #NodeREDSeries #Programming