Nashorn Question

Jim Fox fox at washington.edu
Tue Sep 5 17:52:22 EDT 2017


I think you can use "your_array.length"

Jim


On Tue, 5 Sep 2017, Y Levine wrote:

> Date: Tue, 5 Sep 2017 14:41:01
> From: Y Levine <ylevine20 at gmail.com>
> To: Shib Users <users at shibboleth.net>
> Reply-To: Shib Users <users at shibboleth.net>
> Subject: Nashorn Question
> 
> Been googling like nuts....in Nashorn, how do you do a  sanity check upfront if array is empty?
> 
> The examples here work great https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition
> 
> Accept we have for some attributes no values for users -- so array empty when it comes to the script calculation.
> 
>


More information about the users mailing list