# Change number to a word

**URL:** <https://discourse.nodered.org/t/change-number-to-a-word/70212>\
**Category:** Dashboard\
**Tags:** function-node\
**Created:** [7 November 2022 12:27 UTC](https://discourse.nodered.org/t/change-number-to-a-word/70212 "2022-11-07T12:27:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dereine](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dereine](https://discourse.nodered.org/u/dereine)\
**Post date:** [7 November 2022 12:27 UTC](https://discourse.nodered.org/t/change-number-to-a-word/70212/1 "2022-11-07T12:27:44Z")

</div>

Good day

I am doing monitoring at the moment.  
Now I read out the status code of a raid via SNMP (2 = OK, 3 = Degrade etc.)  
But I want the dashboard to show "OK" instead of a 2 or "Degrade" instead of a 3.  
I have tried it with the function "Change".

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5edbfae91fa6270b525f377e2e8c5158d26083af.png)

Unfortunately this does not work  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [7 November 2022 12:33 UTC](https://discourse.nodered.org/t/change-number-to-a-word/70212/2 "2022-11-07T12:33:47Z")

</div>

The line "suche nach" you have to click on the "az" en change it to number.  
Your payload value 2 is a number and not a string.

---

<div class="post-metadata">

**Author:** ![dereine](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dereine](https://discourse.nodered.org/u/dereine)\
**Post date:** [7 November 2022 12:41 UTC](https://discourse.nodered.org/t/change-number-to-a-word/70212/3 "2022-11-07T12:41:00Z")

</div>

This was the mistake. I actually overlooked this. Thanks for the help and I wish you a pleasant day.

---

<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:** [21 November 2022 12:41 UTC](https://discourse.nodered.org/t/change-number-to-a-word/70212/4 "2022-11-21T12:41:52Z")

</div>

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