Suppose I make a selection on some layer and I want to apply some function on only those records.

I know there's a box you can check in the Field Calculator for this, but is there a function/expression I could use alternatively?

1 Answer 1


In the Field Calculator, under the Record and Attributes header, you've got the is_selected() function which returns True if the feature is selected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.