Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This is a Lua string:

local AString = "This is a string"

Lua supports a multiline form of declaring strings where you can start with the string with [[ and end it with ]]. This is analogous to Javascript literal notation.

local ALongString=[[
This is
a long
multiple line string.
]]

The same syntax can be used with comments:

-- A single line comment.

--[[
A multiple line
comment!
]]

  • No labels