# Unit 5 Hackathon - set text still errors out in mathisRandom function

**URL:** <https://forum.code.org/t/unit-5-hackathon-set-text-still-errors-out-in-mathisrandom-function/35535>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-post-ap\
**Created:** [December 3, 2021, 3:58pm UTC](https://forum.code.org/t/unit-5-hackathon-set-text-still-errors-out-in-mathisrandom-function/35535 "2021-12-03T15:58:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ken](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/ken/32/6111_2.png) [@ken](https://forum.code.org/u/ken)\
**Post date:** [December 3, 2021, 6:11pm UTC](https://forum.code.org/t/unit-5-hackathon-set-text-still-errors-out-in-mathisrandom-function/35535/2 "2021-12-03T18:11:53Z")

</div>

Hello!

What is the purpose of the if statement on line 30 in your `getArtInfo()` function? That could be a place to start. It seems as though this function results in nothing getting added to your filtered lists. Using the watcher/console area could be helpful to see what’s going on.

You could also check out this [Debugging Flowchart](https://forum.code.org/t/debugging-flowchart/35521) that might be helpful.

Cheers,  
Ken

---

_[View the full topic](https://forum.code.org/t/unit-5-hackathon-set-text-still-errors-out-in-mathisrandom-function/35535)._
