Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Test for if two locals have the same elements not working

    Hello,

    I am trying to see if two lists that I have stored in some locals have the same elements or not. I used
    Code:
    levelsof iso_o, local(a) clean
    levelsof iso_d, local(b) clean
    local x: list a === b
    di `x'
    and I was expecting to get an output of 1 because the lists are actually the same. However, I got a 0. Then I tried the following.

    Code:
    local p "b" "a" "c"
    local q "a" "b" "c"
    local r: list p === q
    di `r'
    I believe that the output should be 1 because the list is equivalent if the order of the elements doesn't matter, but the output I am getting is 0. Can you please help me with this?

    Thank you.

  • #2
    I apologize for this, but now I realize that that is not the correct way to make a list using local. I have figured this out now

    Comment

    Working...
    X