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

<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/3 "2022-11-07T22:13:55Z")

</div>

# BLL Coding

BLL codings are expressions within text-arguments in flowcards.  
In every App that supports BLL coding, for each text-argument in flowcards that goes through the BLL decoder, you can use `{[expression]}` .

Within these expressions, you can use build-in modules, functions and your own customisable functions.

## Modules

- \_  
Lodash 4.17.21
- math  
Math.js 11.3.3

Example  
`The last one is: {[_.last(["1", "2"]) ]}.`  
Result:  
The last one is: 2.

## Build-in functions

`date(format, date?, locale?, timeZone?)`  
This method will return the current date(time) in the entered format, with respect to the user defined locale (language) en timezone.  
Optionally you can supply the date(time), locale and/or timeZone.

Example  
`Today is a {[date("dddd")]}`  
Result:  
Today is a donderdag

# Date codings:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/1823cdc0d4539b6ce854a796e1681d433a1d0afe.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bfe95cd79f3f77af981a23673f9fba40d293c615.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/83214128c1cb757c725bcd99fb2bd4ea3f145a91.png)

---

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