I intent to expand a layer's symbology by a geometry generator using the following expression:
case when attribute > 2 then buffer($geometry, attribute) end
However it doesn't work (also when incorporating a else-clause). When using this expression with 'Geometry by Expression' it returns invalid geometries. I want the geometry generator to draw a buffer only on certain features by using a conditional expression - how to do this? Is this possible at all?