early exit from Nashorn script?

Jim Fox fox at washington.edu
Mon Jan 27 18:56:17 EST 2020


Every Nashorn script I've seen ends with its return value, e.g., 
"nextFlow;" in mfa scripts.  Is there a way to exit with a value in the 
middle of the script?

e.g.

   # I know user cannot complete the login
   exit("authn/you-are-toast");


Jim


More information about the users mailing list