filtering a dataset by product collection

hey there,
i created a repeater to show my products
i want to make a filter by collection name when a user clicks on a button but cant seem to make it right

this is the code ive used

any ideas on how to make it right?