That isn't possible with the switch node; you will have to use a Function node and write the logic in JavaScript.
The next release adds support for jsonata expressions to access context variables, so would be possible then.
Nick
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/4132eccd-088b-42b6-b36b-25a2be9a47d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
there's nothing (much) wrong with function nodes :-).... we don't want to discourage people from opening up a function to fix things... it encourages people into coding, which is half the plan !
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFwL9uUdVmpUmpLUMupv2jR5tTs6_%3DDyfD-Y1PEJq8ejYUQ%40mail.gmail.com.