Jump to content

Recommended Posts

Hey folks, 

Ultimately I'm looking for something along the lines of

     

Global $arr = [ _
                [ _
                    [ $var1 , "String1" ], _
                    [ $var2 , "String2" ] _
                ], _
                [ _
                    [$var3, "String3" ] _
                ]_
              ]

 

I'm getting errors with something like this, is it because I need to fully define out the array?

\

Link to post
Share on other sites

I think it's because there is no space in one of your ]_ instead of ]  _
The following seems to work and it displays 111 in AutoIt console :

Global $var1 = 111, $var2 = 222, $var3 = 333

Global $arr = [ _
                [ _
                    [ $var1 , "String1" ], _
                    [ $var2 , "String2" ] _
                ], _
                [ _
                    [$var3, "String3" ] _
                ] _
              ]

ConsoleWrite($arr[0][0][0] & @crlf) ; displays 111 in AutoIt console


 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...