# Issue with "Make Array"

**URL:** <https://community.glideapps.com/t/issue-with-make-array/72404>\
**Category:** Ask for Help\
**Created:** [April 9, 2024, 4:06am UTC](https://community.glideapps.com/t/issue-with-make-array/72404 "2024-04-09T04:06:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [April 9, 2024, 4:06am UTC](https://community.glideapps.com/t/issue-with-make-array/72404/1 "2024-04-09T04:06:57Z")

</div>

@Darren_Murphy, there’s a small matter I’d like to discuss regarding the use of “Make Array.” If you look at the image below, perhaps the issue lies with “false” and “empty” resulting in the Array function not receiving the same array count. Do you have any ideas on how to resolve this?

 ![Screenshot 2024-04-09 at 10.24.48](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/3/8318aa0ab5afe035f409b3fdc368bd61a5b12d15.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 9, 2024, 4:14am UTC](https://community.glideapps.com/t/issue-with-make-array/72404/2 "2024-04-09T04:14:49Z")

</div>

Yeah, a Glide boolean has 3 states: `true`, `false`, and `null`.  
And `null` and `false` are not the same, which can sometimes give unexpected results.  
In your example above, it seems that the Make Array column ignores the `null` state, and only considers the `true/false` states. I don’t know if that is correct behaviour, or a bug 🤷‍♂️

In terms of “resolving” it, I guess what you could do is create an in-then-else column for each boolean, and then use the if-then-else columns in the Make Array column. Clunky, but should work.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [April 9, 2024, 4:29am UTC](https://community.glideapps.com/t/issue-with-make-array/72404/3 "2024-04-09T04:29:23Z")

</div>

Yes, initially I have done that (you can see it in the adjacent column). I will reconsider the idea of ​​changing it with the make array column. Thank you very much.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [April 9, 2024, 12:12pm UTC](https://community.glideapps.com/t/issue-with-make-array/72404/4 "2024-04-09T12:12:11Z")

</div>

Just sharing with you, I finally prefer a shorter and tidier way by only needing 2 columns: a template column to combine all boolean columns and a javascript column to convert 3 states of values into 2 states. 💡

```auto
return p1.split(",").map(value => value === "" || value === "false" ? "false" : value).join(",");

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 16, 2024, 12:13pm UTC](https://community.glideapps.com/t/issue-with-make-array/72404/5 "2024-04-16T12:13:13Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
