[Solved] Sitemap item icon depending on string

Hello,
i like to add a icon to my sitemap item depending on a string

I tried

icon=[string_dwdweatherwarning_severity=="Minor"="warnyellow", string_dwdweatherwarning_severity=="Moderate"="warnorange", string_dwdweatherwarning_severity=="Severe"="warndarkred", string_dwdweatherwarning_severity=="Extreme"="warnred"]

but it is not accepted how is the right definition??

Search the forum for Dynamic Icons. That should point you to a solution.

Usually half the battle on searching is knowing what term to use.

How did you configure your items?

it’s working now I had made a write error.

solved