# Help with search array

**URL:** <https://forum.kirupa.com/t/help-with-search-array/303479>\
**Category:** Uncategorized\
**Created:** [January 21, 2010, 1:01am UTC](https://forum.kirupa.com/t/help-with-search-array/303479 "2010-01-21T01:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [January 21, 2010, 1:01am UTC](https://forum.kirupa.com/t/help-with-search-array/303479/1 "2010-01-21T01:01:54Z")

</div>

I have an array of homes…each home has a SearchPrice and a SearchBuilder assigned to it…ie “270-290” for price and “builder1” for builder

I then have toggle buttons for searching price and builder

160-299, 200-240, 250-260 …, 300+ etc…  
builder1, builder2, builder3 …, builder 7 etc

I need to basically search the array of homes and filter out the buttons that aren’t selected. So if they select “250-260” and “builder2” I need just those results…if they selected “250-260” and “builder2” and “builder3”, I need those results. I am already storing the selected buttons in an array called ‘searchOptions’

If the button is toggled on, it will be in that array.

I just want to put the results in a separate array…hopefully that is clear enough, thanks.
