attribute resolver script

Cantor, Scott cantor.2 at osu.edu
Wed Nov 23 15:20:52 EST 2016


On 11/23/16, 3:09 PM, "users on behalf of Andrew Morgan" <users-bounces at shibboleth.net on behalf of morgan at orst.edu> wrote:

> I've never written Velocity.  Is this a reasonable way to assign a default value:

You can just inline all that, you don't need the variable in the middle.

#if( !$givenName or $givenName.isEmpty() ).#else$givenName#end

Ugly but it works. I don't know if it will work with whitespace all over.

-- Scott




More information about the users mailing list