My QGIS project includes three layers representing catchment areas for playgrounds. Depending on the age of the children, the catchment areas are either 200 m (catch_area_200m.shp), 400 m (catch_area_400m.shp), or 1000 m (catch_area_1000m.shp).
Within the print composer always just one catchment area is visible. Depending on which of the three layers is active, I want to have this information in the title of the legend.
What I basically need is some sort of conditional clause, checking which layer is activated and then printing a string with the appropriate distance, e.g. '400 Meters', to the title of the legend.
How can this be realised?