thingsboard icon indicating copy to clipboard operation
thingsboard copied to clipboard

TBEL is eval supported?

Open sudhirbits opened this issue 1 year ago • 1 comments

Component TBEL

Description Does TBEL support the javascript equivalent of eval function? Use case is that some operations are defined in server side attributes and it would be useful to use the eval function.

Environment

  • OS: Ubuntu 22.2
  • ThingsBoard: 4.0.1
  • Browser: NA

sudhirbits avatar Aug 22 '25 02:08 sudhirbits

No — TBEL does not support the JavaScript eval() function or anything equivalent. As your reference: TBEL = fast, safe expressions (no eval). JavaScript executor = use if you need eval-like dynamic execution.

rajjitlai avatar Aug 29 '25 07:08 rajjitlai