1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Variable indirection for arrays

Discussion in 'Support' started by thorsten, Oct 14, 2016.

  1. thorsten

    Joined:
    Aug 16, 2008
    Messages:
    121
    Likes Received:
    0
    Hi,

    variable indirection is possible via `%[%var]` (see [title]). Is the same possible for array variables? `%[%var][0]` does not work...

    Thorsten
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    No - variable indirection assumes that the result will be an environment variable. (Variable arrays are not stored in the environment.) Not impossible to do in the parser, though not a trivial exercise.

    You can request it in the Suggestions Forum if you need it.
     

Share This Page