Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Switch Case Step?

  1. #1
    Join Date
    Jun 2007
    Posts
    476

    Default Switch Case Step?

    I'm working with a transformation that has to filter rows and do things, what i've been doing is make a simple "Filter rows" step followed by more "Filter rows" step to do the job like this:

    if(a=1){ do x }
    else{
    if(a=2) {do y}
    else{
    if(a=3){do z}
    else { do other}
    }
    }

    The problem is that as it can be seen, i need to put many "if" (Filter rows) steps, so I wonder is that if someone knows if theres another way of doing it, like a CASE statement or something like that?

    Thanks all for your help
    Rodrigo Haces
    TAM / Enterprise Architect
    Pentaho

  2. #2
    DEinspanjer Guest

  3. #3
    Join Date
    Jun 2007
    Posts
    476

    Default

    Quote Originally Posted by DEinspanjer View Post
    Damm.. I don't know why I haven't seen that!!! I sweare I looked at steps doc. and didn't see that.. LOL!!!

    Thanks
    Rodrigo Haces
    TAM / Enterprise Architect
    Pentaho

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.