What is this in Scripting?

Hi,
So I’m wondering what exactly this this in Scripting?

return [[ 
What is this???
]]

Just a Quick question tho,
thanks

1 Like

Are you asking what return is?

Sort of, im more of Refering to the Brackets [[]]

Brackets, or braces, are a syntactic construct in many programming languages. They take the forms of “[]”, “()”, “{}” or “<>.” They are typically used to denote programming language constructs such as blocks, function calls or array subscripts.

Brackets are also known as braces.

1 Like

Swift for example does {} for functions or loops

1 Like

Thanks, I already know this, I’m just wondering what this piece of code does

I haven’t programmed in months isn’t it the api return value?

It returns a multi-line string.

1 Like
1 Like

Oh i see, so its similar to a Multi-Line Comment, Thanks!

--[[
Multi
Line 
Comment
--]]

print([[
Multi
Line
String
]])
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.