# Switch node: accepts credentials in test value

**URL:** <https://discourse.nodered.org/t/switch-node-accepts-credentials-in-test-value/77622>\
**Category:** Feature Requests\
**Created:** [16 April 2023 09:19 UTC](https://discourse.nodered.org/t/switch-node-accepts-credentials-in-test-value/77622 "2023-04-16T09:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msillano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/msillano/32/17424_2.png) [@msillano](https://discourse.nodered.org/u/msillano)\
**Post date:** [16 April 2023 09:19 UTC](https://discourse.nodered.org/t/switch-node-accepts-credentials-in-test-value/77622/1 "2023-04-16T09:19:22Z")

</div>

The actual version of the `switch node` (nodered 3.0.2) accepts, in "Edit switch node' pad, _msg.|flow.|global.|string|number|Jexpression|env.variabile|previus value_ but not _ **credentials** _.

I am in the (rare) situation of using IOT device IDs as values in a selector.  
Throughout my flow the IDs (used as _primary key_) are always in credentials, especially to be able to export and exchange the flow safely. Except in the switch node.

Sincerely  
m.s.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 June 2023 09:19 UTC](https://discourse.nodered.org/t/switch-node-accepts-credentials-in-test-value/77622/2 "2023-06-15T09:19:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
