Of course it provides only the last element. Each time you have a true case, you overwrite what any previous true case has created. You need to use a shift register with a build array in the true. This would be almost identical to the shipping example called Building Arrays. If you were to open the example finder, you would see this under Fundamentals>Arrays and Clusters.