What does [[ ]] mean in scripting? (CLOSED, DON'T REPLY)

[[…]] is a template literals for Lua, the purpose of it is to auto-\n.

Like this:

local template = [[
Lua
  4
Life]];

print(template)

--[[
The output should be like this

==========
Lua
  4
Life
==========

The string value should be like this:

'Lua\n  4\nLife'
]]

Instead of saying “CLOSED, DON’T REPLY” you can close the topic manually. There’re several tutorials on the dev forum on how to do so.

1 Like