List function format

List function format


Hello,

I have this scenario:

  1. codesFormA = input.Multiline.toList("\n");

  2. codesFormB= List();

  3. for each  line in FormB[ID == input.Lookup_Field_Name]
  4. {
  5. codesFormB.add(line.SubformB.Code);
  6. }

My question is why codesFormA returns: 1,2,3
And codesFormB returns me: ["1", "2", "3"]

In theory both variables are lists, they should have the same format (referring to quotes and brackets).

What I am looking for is to compare the two lists to know if they have the same codes.


Thanks,