Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to break a code line in Lua

Tags:

syntax

string

lua

Stupid question but I can't seem to find the answer. For example if I had this bit of Lua code:

print("<html code blabla>
   <more html><and its long so I want to break it up like this>")

I've tried using \ and / at the end of the first line but it doesn't seem to work. Is this possible to do in Lua and if so how?

like image 365
Nimjox Avatar asked May 07 '14 19:05

Nimjox


People also ask

How does break work in lua?

In Lua, break statement enables us to come out of the inner block of a code. Break statement is used to end the loop. The break statement breaks the for, while, or repeat loop which includes the break statement. After the break loop, the code runs after the break statement and the broken loop.

Does break end lua?

Like that lua does not have the “continue” keyword instead of that we have do break end the statement will never ends still they have some implements waiting for the script execution.

What does hashtag mean in lua?

# is the lua length operator which works on strings or on table arrays.


1 Answers

print("<html code blabla>\z
       <more html><and its long so I want to break it up like this>")
like image 64
Egor Skriptunoff Avatar answered Sep 22 '22 05:09

Egor Skriptunoff