Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (msg.payload == “high”) {
- return [ msg, null, null ];
- } else if (msg.payload == “med”) {
- return [ null, msg, null ];
- } else {
- return [null, null, msg];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement