# \[APP\]\[Pro\] Better Logic Library - For Users

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-for-users/71876>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, logic, bll\
**Created:** [November 7, 2022, 10:13pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876 "2022-11-07T22:13:40Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [March 25, 2023, 3:04pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/35 "2023-03-25T15:04:57Z")

</div>

> [@Rrrr](#):
>
> Hi, I read that BLL supports arrays.

Hey @Rrrr ,

Wel, yeah, not specificly, but generally, BLL supports Arrays.  
because i don’t exactly know how users will want to use this, i haven’t implemented special array functions or anything, but you can do that yourself quite easily.

For instance, here a small array functionality.

- Create a BLL function (in the BLL settings → Functions called `pushAsString` and place this in it’s body:

```auto
function(arr, value) {
  arr.push(value);
  return JSON.stringify(arr);
}

```

- Add a flowcard Set variable to text: Set ArrayTest to `[]`
- Add a flowcard Set variable to bll expression: Set ArrayTest to `pushAsString([[ArrayTest-token]], 1);`
- Add a flowcard Set variable to bll expression: Set ArrayTest to `pushAsString([[ArrayTest-token]], 2);`
- Add a flowcard Execute BLL expression as Tag: `_sum([[ArrayTest-token]])`

This wil result in a token with `3`.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b12bd3ee1ef5b3daed3acc2828d8425f0543bef8.png)

### Flow:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9dba68423a57ac2a8531a074d49adb1d5a46e964.png)

TEF:

```auto
[tef:FLOWS:"H4sIAAAAAAACA+2UTY+bMBCG/0rkU1fCkcE2xvS03eveuqdGERqbIUEiBIFJE6X57x3IdtVIkVartrde+JiZd2beB+EzCyw/sxbDsuYlHpYOQ8C+2W9qPyXCqcNheoD2xPIVVcIOWc4e+x5OLzgEdllfItZS6MusXDxP0sVz7XroT+xCSZiFNZVIgVnltOLe0kXZ0nOHWnKJsbHOSClAs2u3qfdinkKBeRXtwFaOJKbyFVeQGm59mXENxscSpMpKOdUdWS4iRtumdNtTq+1+h6ccui6/bzOad3unKh8wFEPo63ZTHKCvwTVISqLHwId637LZ6Jm9JfM7sKIZKIWunei9xMH3dTd3yNlTjxBw0eL3xWsF8TtAM06a1XrGqTKRlR6AjMeCK5Vk3GqBvNI2iWWZJNZVNxzi7K+CwCP6MWDhmgKPXY/DcHX/YRS/fN2h0uNuf6BIBc2AEWtgCE9baDdYUlUiEsmF5Il+iVWubS7NMk6zb9PYMZDR0I9IoH7bLmfdOGwfh6/zgE+r1Tsmf7ztuV5Hi/jh80y+sj7OMAHuTKq5MpXkTtqKC6UqLXUJiXE35KX4T/6PyCev5H0ijU0N8Co29O+7FLiFUtCHEJlAUaZK4g15lf578kWAzV36N/aL5TDuPub7gTxf6Fz9CWI6jV+dBQAA":/tef]

```

---

_[View the full topic](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)._
