Needs to collect all items and reach the end level door to complete. How do I do this?

For my game i am trying to make it so my character has to collect all of the pickups and reach the level door to complete the level. I can make it so if the character reaches the level doors it continues to the next level and if the character collects all of the pickups it will proceed onto the next level. Is there any way to make it need both to proceed to the next level?

Link?

i messaged you

Each time you collect an item, add one to a number. When the number equals the number you need to proceed ( via a filter ) a switch is turned on, then by touching the gate you progress to the next level.