Add isselected expression

Requires the parameter layerName because this is not available from the context. It is possible to use the layer id and for convenience also the layer name.