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

Comparison for List/Map

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • rel-5-6-0
    • None
    • Security Level: Users (General product issues)
    • 5
    • UNDECIDED
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: