I’m sorry I don’t understand. The text-tag is the reason I am interested in the Execute as tag card because the flow can continue with the real-time result in the tag. Much better than having to store it in a variable.
Use:
'The last one is: ' + _.last(["1", "2"])
(An expression)
Nice one!
Unfortunately, a variable is passed as a whole to ‘Execute as tag’ and it would mean a lot of work/worry to ensure the content in the variable follows the above syntax.
(In my specific case, the variable is a logging message from ‘When a log is generated’ card in Simple Log. See my other request here)
The big benefit of the ‘Execute as tag’ card is the real-time result in a tag. It would be much more convenient if the ‘Execute as tag’ card would accept the same syntax as the card ‘Set variable to text’.
@Arie_J_Godschalk
What is the BLL expression for this:
- Replace every _ (underscore) with \_
- Replace every * (star) with \*
If there is no direct BLL expression, perhaps the syntax for a BLL function?
Something like this (I know this does not work, but should be something similar)?
Imaginary BLL function code:
function(){
list<char> v(100);
for_each(v.begin(), v.end(), _ = \\_);
return ReplaceCharacter(str);
}
I have just added a new flowcard in the new version (live right now):
Execute Text as Tag.
You can use this to Execute/return a text which can contain BLL Codings {[ ]}.
Most easy way would be (in BLL coding):

{[ "as_d_asdasd".replaceAll("_", "\\_") ]}
Its working great, thank you! You are spoiling us. ![]()
Hi,
is it possible to use BLL variables I created in the App in a function that I create? If so, what is the syntax? I could not find any example. I tried it with $ before the name and before and after the name and with just the variable name, but always get an error.
Kind Regards,
Gerhard
@Gerhard_Sommer No actually, but its a great idea!
Would you mind creating a ticket for it? Thanks!
Hey, maybe a stupid question - I’m trying to create a big list of BLL variables and import them back to homey, but import button doesn’t seem to work… What am I doing wrong?
Thanks,
@Arie_J_Godschalk I have just started using BLL.
Initially I want to do something simple. At the moment all my variables are Homey Logic variables. I imagine I will need to create a BLL text variable for the result but with BLL can I transform a Homey Logic number variable into the BLL text variable? I simply want to convert a number (32.98) to text (33%) rounded up or down.
Is this possible or do I need to also populate thew number into a BLL number variable.
If you could provide an example that would be appreciated.
I don’t think setting it to a variable is necessary at all, you can calculate in any text input, so should be possible in that flow card too:
MyStringVar = {{ round(VARIABLE).toString() }}
Not sure why we want it to be a string value though, just a number should work too:
MyVar = {{ round(VARIABLE) }}
I guessed he wanted the value xx% in a variable. You can’t store the % sign in a numvar
That’s why I did it in a stringvar, Remco.
Sure, but do you want to use BLL for this, or did you thought default homey variables couldnt do this?
If you WANT to use BLL for specific reasons, let me know and ill show an example.
No, that’s great Arie, thanks.
Peter, it looks like I need a function such as round() for this to work. What function do I use if I don’t want the number to be rounded but set to 2 decimal places, or rounded to 2 decimal places?
Where do I find what functions can be used? Is it any valid Node.js function?
Hi Peter,
Here’s some examples!
At https://mathjs.org/ you can find all possibilities, but I’m not sure each and every one is valid for use @ Homey
Thanks again Peter
I want to subtract to times set in different flows
I tried, but this does not work. Example flow below. in reality the two time flows would be triggered by different events, and I want to use the time difference between these two events as input to a different flow:

preferable even subtract the two different time variables
Time difference can run over days, and I want to have the difference in minutes
My Telegram issues with not passing certain characters were solved by migrating to the other Telegram app by Julian Sohl


