1 Reply Latest reply on Nov 16, 2016 8:36 AM by networkteam@pilottravelcenters.com

    Arrays in a config change template

    networkteam@pilottravelcenters.com

      I have a list of networks that are static and I want to hard code them in my scripts.  I'm trying to populate an array but cannot figure it out.  What is the proper format for this?

       

      string[] @AllTestNetworks

      @AllTestNetworks = ['1.1.1.1','2.2.2.2']

       

      foreach(@network in @AllTestNetworks)

      ...do something

       

      It errors out when I'm trying to populate the array with the networks.