Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: using switch case and ifelse condition in same jscript component

  1. #1
    Join Date
    Aug 2012
    Posts
    13

    Default using switch case and ifelse condition in same jscript component

    Hi
    I am using
    Modified Java Script component
    and i am defining conditions using both swithc case and ifelse loops.
    but an error comes while testing the script saying--"invalid switch statement"
    I am attaching the script with the post.

    obliged for the help
    regards
    nidhi
    Attached Files Attached Files

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Try 'case' instead of 'Case'...

    BTW: You can easily avoid the maintenance nightmare and the performance penalty introduced by your javascript, by using a merge diff and some lookup step.
    Last edited by marabu; 09-14-2012 at 07:55 AM.
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Aug 2012
    Posts
    13

    Default

    thanksalot it worked,sorry couldn't reply earlier

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.