Remark lines?

  • Videogamer555
    16th Dec 2011 Member 0 Permalink
    How do I add "remark" lines to my script? VB uses the single quote ' while C uses two slashes //
    What does Lua use?
    This would be VERY useful for temporarily removing a line of script.
  • jacksonmj
    16th Dec 2011 Developer 0 Permalink
    Lua uses --

    https://powdertoy.co.uk/Wiki/W/Lua.html#Simple_Example_Code

    -- This line is a comment. Anything written after the -- is considered a Comment and will not be read by Lua.
    -- Comment can be multiline, for this you should write it in --[[ and ]]--
    -- Set the console's state to 0. This will hide the console.
    tpt.set_console(0)