Error: closebracket expected

Never seen this before like this. Copied this over from word. Clearly I have a closed bracket. What is going on here?
image
Please advise.

Try replacing the quotes ("). They often get copied as different characters from the string quotes. You can tell because they’re slightly more exaggerated and nothing was actually converted to a string.

Is there a way to tell Word not to do that?

Maybe? But I’m not aware of a way.

I have the same issue. What is the solution for this?

a[“a”,“b”]; gives an error
a[‘a’,‘b’]; gives same error
image
image

a[“a”]; gives no error
a[1,2,3]; gives no error

I think I figured it out. Having only [“a”,“b”]; worked.

Hi, @peterfarkas

you can find more info about DesignScript here, and more precisely on “List access expression” syntax