Conditional text

Return the first value that meet the conditions

# %nameplates_conditional_{0}%
conditional-text:
  weather:
    priority_1:
      text: 'Sunny'
      conditions:
        weather:
          - clear
    priority_2:
      text: 'Rainy'
      conditions:
        weather:
          - rain
    priority_3:
      text: 'Thunder'
      conditions:
        weather:
          - thunder
    priority_4:
      text: 'Rainstorm'
      conditions:
        weather:
          - rainstorm

Last updated