riceking Posted August 17, 2022 Posted August 17, 2022 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? \
pixelsearch Posted August 17, 2022 Posted August 17, 2022 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 "I think you are searching a bug where there is no bug..."
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now