# \[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:** 1

<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:** [November 7, 2022, 10:13pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/1 "2022-11-07T22:13:41Z")

</div>

_If you’re an app developer and want to integrate Better Logic Library or support BLL coding in your app, see the [Better Logic Library – For Developers](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761) topic._

# Better Logic Library

**Manage variables, add advanced logic to your Flows, and use reusable expressions in supported apps.**

[**Install Better Logic Library**](https://homey.app/a/net.i-dev.betterlogic/) · [**User manual**](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki) · [**Source code**](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary)

> ## Better Logic Library manual & guides
> 
> New to BLL, or looking for a specific feature? Start with the **[official Wiki](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki)**.
> 
> Find instructions for variables, Flow cards, devices, BLL coding, examples, formatting, settings and integrations.
> 
> 👉 **[Open the Better Logic Library manual](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki)**
> 
> New users: **[Getting started](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Getting-Started)**

## What can you do with BLL?

- Create and manage named variables, and use them in Flows.
- Use Flow cards for variable triggers, conditions, actions and calculations.
- Pair BitFlip, NumSlide and Trigger devices with BLL variables.
- Use BLL expressions, custom functions and formatting tools.
- Use libraries such as Math.js and Lodash in BLL expressions.
- Export and format data, and provide temporary file downloads through the BLL File Server.
- Use BLL APIs and shared libraries from other apps.

## Getting started

1. [Install Better Logic Library](https://homey.app/a/net.i-dev.betterlogic/).
2. Open the app’s settings and create a variable.
3. Add a BLL Flow card, such as **Increment number variable** , to a Flow.
4. Save and run the Flow, then check the variable in app settings.

Follow the [Getting started guide](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Getting-Started) for a step-by-step example.

## BLL coding

In a text field that explicitly supports BLL coding, put an expression inside `{[]}`. For example, this FTP Client filename adds the current date:

```plaintext
snapshot-{[date("yyyy-MM-dd")]}.jpg

```

BLL coding is **field-specific** : the app and the particular field must support decoding. It does not work automatically in every Homey text field. See [BLL coding](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/BLL-Coding) and the [supported apps guide](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Supported-Apps).

The [FTP Client guide](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/App-FTP-Client) includes this community example of a BLL expression in a **Save Image Token** Flow:

![Save Image Token Flow card with a BLL timestamp and a file destination](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/b/cbdf7a46238eb6597776874ea66ce83adf3b2e2f.png)

_Community example: a BLL date expression is used in the filename._

 ![Image file saved with a custom timestamp](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/889b0386b12e500698969d8146bc9afec2dae9d0.png)

_The resulting image file._

## Documentation & guides

| What would you like to do? | Guide |
| --- | --- |
| Create your first variable and Flow | [Getting started](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Getting-Started) |
| Create, edit, export or restore variables | [Variables](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Variables) |
| Browse Flow cards | [Flows](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Flows) |
| Add a BitFlip, NumSlide or Trigger device | [Devices](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Devices) |
| Write expressions or dynamic text | [BLL coding](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/BLL-Coding) |
| Find practical examples | [BLL examples](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/BLL-Examples) |
| Format dates, times or numbers | [Formatting](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Formatting) |
| Configure app settings and the File Server | [App settings](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/App-Settings) |
| Check whether another app supports BLL coding | [Supported apps](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Supported-Apps) |
| Use BLL from another app or HomeyScript | [API](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/API) · [Developer guide](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Developer-Guide) |
| Troubleshoot a problem | [Troubleshooting](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/wiki/Troubleshooting) |

## Support and feature requests

Questions and examples are welcome in this topic.

Please report **bugs** and submit **feature requests** on [GitHub Issues](https://github.com/Qluster-IT/nl.qluster-it.BetterLogicLibrary/issues).

## Apps

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/2):
>
> Apps developed or maintained by me: [Advanced Triggers](https://community.homey.app/t/app-pro-advanced-triggers-trigger-and-action-cards-with-eventname-for-advanced-flows/65651) , [BeNext](https://community.homey.app/t/app-pro-benext-benext-devices-for-homey/76104) , [Better Logic](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568) , [Chronograph](https://community.homey.app/t/app-pro-chronograph-adds-precise-timer-stopwatch-and-transition-functionality-to-homey/18214) , [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) , [Advanced Virtual Device](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) , [FTP Client](https://community.homey.app/t/app-pro-ftp-client/70876) , [Google Services](https://community.homey.app/t/google-services-app-for-translate-and-new-text-to-speech-for-any-device-with-url-input/43257) , [Homesh Controller](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [Homesh Satellite](https://community.homey.app/t/app-pro-homesh-controller-homesh-satellite-connect-homey-pro-2023-to-homey-pro-for-led-speaker-zwave-satellite-and-network-resource/70369) , [JSON Handler and Manipulator](https://community.homey.app/t/app-pro-json-handler-and-manipulator/66317) , [LOQED](https://community.homey.app/t/app-pro-loqed-your-personal-doorman/89816) , [Music Url Converter](https://community.homey.app/t/music-url-converter-play-music-urls-on-homey-bigger-then-900-kb/43546) , [Reverse Proxy and DDNS](https://community.homey.app/t/app-pro-reverse-proxy-and-ddns/160862) , [Simple Log](https://community.homey.app/t/simple-log-app/146) , [Universal Media Player](https://community.homey.app/t/universal-media-player-a-generic-storages-place-for-your-homey-speakers-tvs-or-other-media-devices/43450) and [Virtual Devices](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723) . [Goto profi…](https://community.homey.app/t/profile-arie-j-godschalk/70663)

## Support development

Enjoying Better Logic Library? Donations and sponsorship help support continued development. Thank you!

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/3):
>
> Donations or Sponsorship. You can help with the development, maintenance and support for the Apps, by donating or becoming a sponsor. This would be much appreciated! The more donations i receive, the more time i can make free for development and support. slight_smileDonations can be done through: [[bunq.me] bunq](https://bunq.me/QlusterIT) Donate securely using the payment methods available on the payment page, like iDeal. [[PP] PayPal](https://paypal.me/QlusterIT) Requires a PayPal account. [[GS] Github Sponsors](https://github.com/sponsors/Qluster-IT) Allowes for CreditCard. …

---

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