Rename Variables

Hello Community,

I am receiving a status vom a button for example 1,2,3,4 and I want to rename them in Tago

1 = Ready

2 = Waiting

How I can rename variables?

Thank you

Hi,

Could you give more context for what you want to do? I can’t understand exactly what you want.

Hey Mateus,

for example I receive from a Button when I press 1 a Payload from 31 and this I want to rename to Ready in Tago. I want to Display a Status Like a Traffic light when I press 4 different Buttons

Hi,

I’m not sure if you want to change it to visualize it in a widget, if thats the case,

You can modify what will be displayed in a widget by utilizing the formulas feature.

You could use the following formula to display “Ready” instead of 1 or “Waiting” instead of 2. If you wish to add more conditions just replace the “continue_here” with another condition.

$VALUE$ == 1 ? “Ready”: ($VALUE$ == 2 ? “Waiting” : “continue_ here”)

$VALUE$ == 1 ? “Ready”: ($VALUE$ == 2 ? “Waiting” : ($VALUE$ == 3 ? “Stopping” : “continue_ here”) )

Would this help in your case?

Hey,

yes that was what I am looking for :smiley:

And if I want to create a chart out of this? Is it also possible like this?

I want to create a pie chart. That I can see how many days of the month the status exists

Thanks