Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14556

CHOOSE problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Duplicate
    • Affects Version/s: 5.2.4
    • Fix Version/s: 6.0.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      ChooseVal1 := 0;
      ChooseVal2 := 1;
      ChooseVal3 := 42;
      ChooseVal4 := -42;

      CHOOSE(ChooseVal1,1,2,3); //returns 0, but should return 3
      CHOOSE(ChooseVal2,1,2,3); //returns 1
      CHOOSE(ChooseVal3,1,2,3); //returns 3
      CHOOSE(ChooseVal4,1,2,3); //returns 3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                richardtaylorhpcc Richard Taylor
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: