Expression to Replace HIGH, LOW or MEDIUM with a number(1, 5, 9 respectively)
Sorry for the somewhat newbie question, but I need to do some replacing as the title explains.
I know how to do a compose with:
replace(outputs('TaskValue'), 'MEDIUM', '5')
Which will output the 5 if the TaskValue is Medium, but what I need is to have it in the same output either of the three values (HIGH, MEDIUM, LOW) converted to 1, 5 or 9, so I can use the output of that compose to fill out a field down the Flow.
How can I achieve that? Grateful for any help provided.