Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-18287

Comparison for List/Map

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: rel-5-6-0
    • Component/s: None
    • Security Level: Users (General product issues)
    • Story Points:
      5
    • QA Testing:
      UNDECIDED
    • Epic Link:
    • Sprint:
      Green Sprint 107, Green Sprint 108

      Description

      It should be possible to compare Lists & Maps (variables, expressions) with each other (assuming the same type - list to list, map to map). Only equal and non-equal operators shall be supported (== , !=).

      Example:

      map[string,integer] stringmap1 = {"A"->1, "B"->2};
      if (stringmap1 == {"A"->1,"B"->2}) {
          printErr("the same");
      } else {
           printErr("different:");
      }
      list[boolean] boollist1 = [true,true,false,false];
      list[boolean] boollist2 = [true,true,true,false];
      
      printErr("The same ? " + (boollist1 == boollist2));
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slamam Martin Slama
              Reporter:
              slamam Martin Slama
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: