Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What does [[]] Do, instead of []??

Asked by 10 years ago

So I've figured out what

[i] -- Or whatever you want in the bracket

Does, but I don't have any idea of what

[[i]]  -- Or whatever you want in the bracket

Would do.... Does anyone have an idea??

0
Simple [[blah]] is a string value that can have multiple lines in guis and prints and everything stringy RM0d 305 — 10y

1 answer

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

There's an open bracket [ and a close bracket ], just like if you have one parenthesis, you need another to close it - (). Just depends on how many open parenthesis or brackets you have.

print(math.random(1,3)) local randy = math.random(1,3)

Also, double brackets are used for multiple lined strings.

Ad

Answer this question