Closed florian-h05 closed 1 year ago
I think it's a good idea. However, maybe we should also present how a user can wrap their script in an anonymous function which would allow them to use let
and const
.
Either way, we need to make sure to include the fact that it's only at the top level of the script where they cannot be used. Inside functions it's fine.
Although all our code examples try to avoid using
let
orconst
and instead usevar
, we should add a note to the docs to clearly state thatlet
andconst
are not working in UI rules due to some limitations in openHAB.@rkoshak WDYT?