Page 1 of 1

simple additions / concatenate with Blockly ?

Posted: Friday 27 August 2021 12:38
by flt2
Hi !
is there a way to perform simple computation in Blockly, such as string concatenate, number addition or soustraction ?
I'd like to perform checks like "if metric1 is more than metric2+10" and build personalised mails mixing several informations (thus concatenate).

Sorry if I missed an obvious block :oops: (in that case, I need all the more your help ;-) )

Regards,

Re: simple additions / concatenate with Blockly ?

Posted: Friday 27 August 2021 15:41
by solarboy
This is something I have wanted also, I have resorted to ridiculous piles of blocks to do simple math for exactly the case you mention, for me it was comparing temperatures with an offset. Would be great to have for example "if temp1-temp2 > x then..."

Re: simple additions / concatenate with Blockly ?

Posted: Friday 27 August 2021 20:00
by waltervl
This has been a long requested functionality but it is hard to implement for some reason.

You can use dzVents for this kind of more complex scripts. viewtopic.php?f=59&t=18143