Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Coalesce() javascript ?

  1. #1
    Join Date
    Jun 2006
    Posts
    282

    Question Coalesce() javascript ?

    I have a situation where I need to find the first non null field of multiple fields in a stream. Does anyone have a javascript function that is similar to coalesce they are willing to share? I don't have the luxury of performing this on the DB.

    Regards,
    Darrin
    "If you want to increase your success rate, double your failure rate."
    Thomas Watson, Sr (former president of IBM)

  2. #2
    Join Date
    Jun 2006
    Posts
    282

    Default Nevermind

    I forgot to take my SQL cap off before putting on my JS cap. Decided to use the "built-in" coalescing (boolean) features of javascript...
    "If you want to increase your success rate, double your failure rate."
    Thomas Watson, Sr (former president of IBM)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.