Jump to content

Help im new in LUA


CTCCoco

Recommended Posts

well, but -- in front of ]] enables little trick:

--[[ this way it's a block comment
function someFunction(someVar)
  local anotherVar = someOtherFunction(someVar)
  someVar = nil
  anotherVar = nil
  return false
end
--]]

and to uncomment the block, one more "-" is added at the start:

---[[ and this way it's a single line comment
function someFunction(someVar)
local anotherVar = someOtherFunction(someVar)
 someVar = nil
 anotherVar = nil
return false
end
--]] and this is too

and the code's on again *)

Link to comment
well, but -- in front of ]] enables little trick:
--[[ this way it's a block comment
function someFunction(someVar)
  local anotherVar = someOtherFunction(someVar)
  someVar = nil
  anotherVar = nil
  return false
end
--]]

and to uncomment the block, one more "-" is added at the start:

---[[ and this way it's a single line comment
function someFunction(someVar)
local anotherVar = someOtherFunction(someVar)
 someVar = nil
 anotherVar = nil
return false
end
--]] and this is too

and the code's on again *)

ow, didn't know that one, seems pretty useful!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...