Retrieve an ENV variable label in subflow

Hi,

I have set Lables on an env variable in a subflow (as a list), as shown:

Schermata 2021-10-14 alle 17.47.43

Now, I need to retrieve the Label in a function (in the same subflow), depending upon the choosen value. The env variable is named ACTION.

Any suggestion?

Hi @fmarzocca

The env var is set to the value, the label is not exposed in the flow.

If its the label you want rather than the values you have set, then you could change the values to match - Pause, Start, Park.

Or you could include a Function node that has the same table of values and can do the reverse mapping from value to label.

Ok. Thanks. A function will work!

  • Sent from my mobile phone. Sorry for typos -