5 Replies Latest reply on Jun 2, 2008 2:09 PM by Newsgroup_User

    Using string variables to access properties in a list

    Viiper
      Hey, scripting nublet here.

      I was wondering. Like the topic says. Is it at all possible to access a "certain reference" in a property list by using a variable value?

      An example:

      annoyingList = [#Alpha: 123, #Bravo: 321, #Charlie: 213]
      posMarker = "Bravo" --Changes by users textinput
      --How can I use 'posMarker' to access the list's #Bravo value?

      output = annoyingList.??(posMarker)

      Hope someone can help, cause it will save me 1000+ lines of mundane code