Log In  

I can see how to have a string linked to another thus:

cls()
a=[[apple
juice]]
print(a)

apple
juice

However, how do you link a string to another on 2-lines that does not put a CR (#10) inside the text between code lines ?

cls()
print[[apple;;
juice]])

applejuice

How do you do it ?

P#30922 2016-10-14 11:28 ( Edited 2016-10-14 15:58)

I don't think this is possible, since [[]] quotes don't interpret escape sequences. Normally I'd suggest stripping the newlines with a string replacement function, but it doesn't look like you can get at Lua's gsub from inside PICO-8.

If you're okay with the quotes, there's:

CLS()
PRINT("APPLE"
    .."JUICE")
P#30925 2016-10-14 11:49 ( Edited 2016-10-14 15:49)

DrPete: You answered my question ! I didn't know you could put a ".." on a new line. If this is the only and most efficient way to do it - I'll take it.

Thanks !!

P#30927 2016-10-14 11:58 ( Edited 2016-10-14 15:58)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 15:54:57 | 0.006s | Q:14