kuklis / cma

2 stars 0 forks source link

Aria Automation Orchestrator Tips: JavaScript GOTO | CMA #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Aria Automation Orchestrator Tips: JavaScript GOTO | CMA

How to exit or jump in JavaScript code within a scriptable task

https://kuklis.github.io/cma/post/vro-javascript-goto/

bsaxe-vmw commented 1 year ago

This is cool.

Another option is to wrap the scriptable task object into an IIFE and use the return statement.

; (function () {
    System.log("I'm special");
    return;
    System.log("Don't forget about me!");
})();
kuklis commented 1 year ago

You solution is nice too: one can copy and paste an action code in or out to a scriptable task, without swapping return with break...