Extract a value based on another value

I have this MQTT input text currently running. The payload reports two items (this is a selector switch). Depending on user action, svalue1 will report: 0, or 10, or 20 or 30.

{
	"LevelNames" : "Off|Level1|Level2|Level3",
	"svalue1" : "0",
}

The MQTT code is currently the following:

- id: 8a141f67-1971-40c4-b1d3-25e7b7b0dee4
  alias: "TEST set input text"
  trigger:
    platform: mqtt
    topic: "domoticz/out/611"
  action:
    service: input_text.set_value
    target: 
      entity_id: input_text.titre
    data:
      value: "{{trigger.payload_json.svalue1 }}"

As expected, input_text will be set to 10 if user click on Level1. But this is not exactly what I want. I want input_text set to Level1. In other words “svalue1 divided by 10 + 1” represents the nth element of LevelNames list. I guess I have to use templating, but I’m far to be fluent. Could someone kindly show me the path?
Thank you

Here is the code I came to:

- id: 8a141f67-1971-40c4-b1d3-25e7b7b0dee4
  alias: "TEST set input text" # pour test
  trigger:
    platform: mqtt
    topic: "domoticz/out/611"
  variables:
    levelNames: "{{trigger.payload_json.LevelNames.split('|')}}"
    selected: "{{trigger.payload_json.svalue1 | multiply(0.1) | int }}"
  action:
    service: input_text.set_value
    target: 
      entity_id: input_text.titre
    data: 
      value: "{{levelNames[selected]}}"