fair enough, maybe some day I will have the time to transfer this library to the core blocklies which would mean you have to provide yet another example for a library usage
FranzS
(Franz S)
September 11, 2023, 4:16pm
22
Hi all,
just a stupd question from my side
rlkoshak:
But only if: Conditions
We have the when and the then so now we need the “But only if” to limit when the rule can run to between sundown and 23:00. Add a condition and choose a Script Condition and select Deign with Blockly as the language.
A script condition is just like an action except the last statement execute must evaluate to a boolean (true
or false
). When it’s true
the actions will execute. When false
it won’t.
Is something like this in total sufficient as true / false ?
rlkoshak
(Rich Koshak)
September 11, 2023, 4:20pm
23
Yes. All of the comparison operations return a boolean.
1 Like
FranzS
(Franz S)
September 11, 2023, 6:12pm
24
Thanks @rlkoshak ,
I was just a hit confused that no „return“ keyword is required.
BR
/Franz