# How to change the value of a value rule inside a switch node from the UI

**URL:** <https://discourse.nodered.org/t/how-to-change-the-value-of-a-value-rule-inside-a-switch-node-from-the-ui/76535>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [14 March 2023 06:40 UTC](https://discourse.nodered.org/t/how-to-change-the-value-of-a-value-rule-inside-a-switch-node-from-the-ui/76535 "2023-03-14T06:40:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoldD](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@GoldD](https://discourse.nodered.org/u/GoldD)\
**Post date:** [14 March 2023 06:40 UTC](https://discourse.nodered.org/t/how-to-change-the-value-of-a-value-rule-inside-a-switch-node-from-the-ui/76535/1 "2023-03-14T06:40:43Z")

</div>

I want to change 20 in the picture from ui.

s

 ![3456](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b3c0620836bfe7dec560d084bf8b170a2fb98c4f.jpeg)  
witch node

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 March 2023 06:49 UTC](https://discourse.nodered.org/t/how-to-change-the-value-of-a-value-rule-inside-a-switch-node-from-the-ui/76535/2 "2023-03-14T06:49:12Z")

</div>

You cant change it. But you can use `flow` or `global` variable to compare against. And then somewhere in your flow (or separate flow) you change the `flow` (or `global`) variable as needed.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/365f2cf88adbc2a7cf547fdfea3a34a0ab4a86ca.png)

---

<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:** [13 May 2023 06:49 UTC](https://discourse.nodered.org/t/how-to-change-the-value-of-a-value-rule-inside-a-switch-node-from-the-ui/76535/3 "2023-05-13T06:49:16Z")

</div>

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