Jump to content

Krolock

+Premium Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Krolock

  1. Thanks for your answer. I will publish this lua behaviour in my blog the next days
  2. I made a tutorial about programming lua with an external file by an special editor. It is available in english and in german
  3. If you define a line break in lua like local nr = 1 local message = "Row ".. nr ..[[ Row ]] .. (nr+1) in an external lua file and build the project, the resulting _cartrigde.lua contains the following code: local nr = 1 local message = "Row ".. nr ..[[Row ]] .. (nr+1) The line break only disappears if no charactor or only whitespace are written behind the square brackets "[[" If you define code like local nr = 1 local message = "Row ".. nr ..[[ Bla Row ]] .. (nr+1) the line break won't disappear It does not matter if you write the code in an external file or in urwigo directly. If you activate the "Inline lua 'require'" checkbox, the line break will disappear. see the given example as attachement Krolock LineBreakTest.zip
×
×
  • Create New...