@WolfBeasty
debb177d-e5c6-4cbe-b258-d062dc72d14e-image.png
5b1963d1-3958-40e2-af4e-41ef5ddd0f13-image.png
For cancelling number you can use this.
67601751-1314-480a-a706-dbeec4f1d10a-image.png
795be0b7-9a11-40b3-8094-4f04a4bd1423-image.png
When using this you should also use the right status.
02ccb839-6d12-43e8-83bb-f2f6b4b1cd30-image.png
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.