# Text and Arrays combination help

**URL:** <https://forum.makecode.com/t/text-and-arrays-combination-help/40743>\
**Category:** Help\
**Created:** [December 2, 2025, 10:42pm UTC](https://forum.makecode.com/t/text-and-arrays-combination-help/40743 "2025-12-02T22:42:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)\
**Post date:** [December 2, 2025, 10:42pm UTC](https://forum.makecode.com/t/text-and-arrays-combination-help/40743/1 "2025-12-02T22:42:34Z")

</div>

I need some help with a text / arrays combination.

A trader asks for a certain resource, dividing it by a small percentage, then rounding it. But I have had an issue. Of course, I need to add the resource name next to it, so you know what the trader wants. But I can’t use the join text block to combine the name of the resource and the number. How can I ask what number an array is equal to?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/c/4c40597186ff4721c135b12ce653057f1d0fcb22.png)

not only that, But I need the game to label the resource correctly. Please help here is the project link.

> **[Star trader](https://arcade.makecode.com/S01228-66393-85407-49968)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [December 2, 2025, 11:57pm UTC](https://forum.makecode.com/t/text-and-arrays-combination-help/40743/2 "2025-12-02T23:57:36Z")

</div>

Create a separate array with all the item names.

I created an example project for you:

> **[text-arrays-combination-example](https://arcade.makecode.com/14174-67248-94837-21314)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

If it’s not what you need I’m very sorry

---

<div class="post-metadata">

**Author:** ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)\
**Post date:** [December 3, 2025, 6:42pm UTC](https://forum.makecode.com/t/text-and-arrays-combination-help/40743/3 "2025-12-03T18:42:02Z")

</div>

Afternoon @redSprite! I haven’t really gotten a chance to look at your example project, but it looks help full! before your post was approved I did some bug fixing. Now the client says the resource and how much of it you have but, not a percentage of it. Does this example still apply? Because now all I need is the number to become a small percentage of the resource. here is the updated link if you need it thanks! And one more thing. Do you know how I can ask what an array is equal to?

> **[Star trader](https://arcade.makecode.com/S01228-66393-85407-49968)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
