Elements of a list

  1. 5 years ago

    Joel_Eisenstat

    3 Dec 2018 User since 2016

    Hi,
    Can I access more than 1 element of a list ? ( If not consider this a feature request - if possible)
    var list = [x1,x2,x3,x4]; - this fails
    list[0,1]; ---> x1,x2
    I am trying to pull different values out of list ;
    if list[0,1] {
    do code;
    } else list [2,3] {
    do code;
    }
    Thanks

  2. marco

    3 Dec 2018 Administrator User since 2016

    No @Joel_Eisenstat I am sorry but it is not possible

  3. Joel_Eisenstat

    4 Dec 2018 User since 2016

    Thanks, I thought that would be the lazy easiest way but usually there are others but longer. Likely I'll waste hours trying to figure a one liner ...

or Sign Up to reply!