# Unit 5 Project Help

**URL:** <https://forum.code.org/t/unit-5-project-help/34163>\
**Category:** Coding and Debugging Help\
**Created:** [February 1, 2021, 3:08pm UTC](https://forum.code.org/t/unit-5-project-help/34163 "2021-02-01T15:08:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amannerberg1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/amannerberg1/32/9840_2.png) [@amannerberg1](https://forum.code.org/u/amannerberg1)\
**Post date:** [February 1, 2021, 3:08pm UTC](https://forum.code.org/t/unit-5-project-help/34163/1 "2021-02-01T15:08:33Z")

</div>

I have assigned the Project in the Unit 5 that utilizes traversals.  
I have a student that wants to use a dropdown and looked back at the Traversals Practice (Dog Filter) for help.  
Her problem is that she cannot get her if statements to actually be accessed when the search button in clicked.  
Could anyone see the issue here?

> **[Check out what I made](https://studio.code.org/projects/applab/fyADgTxScixKElVoblrSJiVXsuW7_8C9wZkXfM0Kmqk)**
>
> I wrote the code myself with Code.org

**What I expect to happen:** The user selects a building in the drop down. It connects to the building at its index in the dataset for World’s Tallest Building. It displays the Building, date, and height for that building  
**What actually happens:** The if statements are not accessed and everything comes out as undefined.  
**What I’ve tried:** We have tried using many different conditions for the if statements, including using the building[i] =“_building name here_”&& buildingInput=“_Same Building Name_” but the if statements will not be recognized.

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [February 1, 2021, 3:40pm UTC](https://forum.code.org/t/unit-5-project-help/34163/2 "2021-02-01T15:40:11Z")

</div>

You have [] around the getColumn calls. That puts the array returned by getColumn into an array.

---

<div class="post-metadata">

**Author:** ![amannerberg1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/amannerberg1/32/9840_2.png) [@amannerberg1](https://forum.code.org/u/amannerberg1)\
**Post date:** [February 1, 2021, 3:55pm UTC](https://forum.code.org/t/unit-5-project-help/34163/3 "2021-02-01T15:55:22Z")

</div>

Thank you so much! I knew it was something small that I just could not see after looking over so many different codes!
