early exit from Nashorn script?

Joshua Brodie josbrodie at gmail.com
Mon Jan 27 20:00:25 EST 2020


>From java -- a  guess:

break;


On Mon, 27 Jan 2020 at 16:00, Jim Fox <fox at washington.edu> wrote:

>
> 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
> --
> For Consortium Member technical support, see
> https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20200127/b1c2de1d/attachment.html>


More information about the users mailing list