Switch text

Get the new value in different branches based on the previous value

# %nameplates_switch_{0}%
switch-text:
  season:
    switch: '%customcrops_season%'
    case:
      'Spring': '<green>Spring</green>'
      'Summer': '<yellow>Summer</yellow>'
      'Autumn': '<gold>Autumn</gold>'
      'Winter': '<blue>Winter</blue>'
    default: 'Invalid season'

Last updated