# U5 Hackathon - still getting uistring errors

**URL:** <https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496>\
**Category:** CS Principles\
**Tags:** csp-unit-5\
**Created:** [November 29, 2021, 3:30pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496 "2021-11-29T15:30:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathisd3](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mathisd3/32/2273_2.png) [@mathisd3](https://forum.code.org/u/mathisd3)\
**Post date:** [November 29, 2021, 3:30pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/1 "2021-11-29T15:30:50Z")

</div>

setProperty() value parameter value () is not a uistring.  
setText() text parameter value () is not a uistring.  
[Student code](https://studio.code.org/projects/applab/wDQ1oMYTrj6_2CjjoSLXSCvQ12OVRXCP325bZMjs5kg)

If the above link doesn’t work, please look at the [REMIX link](https://studio.code.org/projects/applab/gY4KDJaEj4C6HkAvX1_K8_N-fkWZvsrifwsuVKu6ClQ/edit)

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [November 29, 2021, 4:56pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/2 "2021-11-29T16:56:19Z")

</div>

The problem is that outputString is a list and not a String. You need to create a string and concatenate all the items from the list into the string and then set the text to that string.

---

<div class="post-metadata">

**Author:** ![mscochrill](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mscochrill/32/3633_2.png) [@mscochrill](https://forum.code.org/u/mscochrill)\
**Post date:** [February 2, 2024, 2:51pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/3 "2024-02-02T14:51:28Z")

</div>

How does one do that?

---

<div class="post-metadata">

**Author:** ![Mr.Rhodes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mr.rhodes/32/8260_2.png) [@Mr.Rhodes](https://forum.code.org/u/Mr.Rhodes)\
**Post date:** [February 2, 2024, 8:04pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/4 "2024-02-02T20:04:14Z")

</div>

If you send over a link to the code, we can take a look at it and give you suggestions!

---

<div class="post-metadata">

**Author:** ![mscochrill](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mscochrill/32/3633_2.png) [@mscochrill](https://forum.code.org/u/mscochrill)\
**Post date:** [February 5, 2024, 2:42pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/5 "2024-02-05T14:42:12Z")

</div>

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

Thank you!

---

<div class="post-metadata">

**Author:** ![Mr.Rhodes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mr.rhodes/32/8260_2.png) [@Mr.Rhodes](https://forum.code.org/u/Mr.Rhodes)\
**Post date:** [February 5, 2024, 3:45pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/6 "2024-02-05T15:45:31Z")

</div>

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

There were a couple of issues, the biggest was how you were testing in your conditional. Remember, you need to test a specific index in the list, not the list itself. **list[i] == something** I moved some of the other structure around to make it a little more efficient. You were getting a unistring error because you were not passing anything along. Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![mscochrill](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mscochrill/32/3633_2.png) [@mscochrill](https://forum.code.org/u/mscochrill)\
**Post date:** [February 6, 2024, 2:17pm UTC](https://forum.code.org/t/u5-hackathon-still-getting-uistring-errors/35496/7 "2024-02-06T14:17:03Z")

</div>

Thank you so much for your help and the explanation!
