break
Default javascript statement to stop loops and funtions.
Syntax
break
Returns
Nothing
Parameters
None
Usage
The break statement jumps out of a loop or function. You can use this for example in the main function to cancel the main process like this:
function main()
{
// GET ALL FILES FROM THE APP
var files = getFiles();
// CHECK IF THERE IS AT LEAST ONE FILE
if(files.length < 1){
dialog("No files ","Add files before running the recipe.","w");
break;
}
...
}