@m4zuper Strange, as this is broken at least since 26.8.0 or something related to this. Hence I thought it's generally not working an concerns every user...
Currently using 27.6.2 on Windows 10, 64BG RAM, Ryzen 7 5800X. BAS is installed at the standard location on C drive. And it happens with every project I try to add this way. Okay, it's not that issue but it's convient to add a project with just one click.
Execute Code module - how it works?
-
Main/Tools/Execute code - how it actually works?
I see it works sometimes with very easy javascript logic, but it failed to do filter/push etc, works fine with devtools, but failed to understand what type of javascript works here always.
const str = [120, 121]; const match = []; for (let i = 0; i < str.length; i++) { if (str[i] === 120 || str[i] === 121) { match.push(str[i]); } } log(match); // Output: [120, 121] SyntaxError: Parse error during execution of actionany guideline will be better?
Thanks
-
@nabil said in Execute Code module - how it works?:
Main/Tools/Execute code - how it actually works?
I see it works sometimes with very easy javascript logic, but it failed to do filter/push etc, works fine with devtools, but failed to understand what type of javascript works here always.
const str = [120, 121]; const match = []; for (let i = 0; i < str.length; i++) { if (str[i] === 120 || str[i] === 121) { match.push(str[i]); } } log(match); // Output: [120, 121] SyntaxError: Parse error during execution of actionany guideline will be better?
Thanks
Don't use "let". The BAS uses an implementation that supports the ECMA-262 standard.