MatthewC529, on 03 April 2015 - 03:19 PM, said:
Possseidon, on 03 April 2015 - 08:51 AM, said:
I was referencing that I never actually tried splitting if then, for do, function, etc. statements onto multiple lines. After doing a quick test when I woke up to see your reply this morning, the Lua interpeter is a lot better than I thought... though to be fair I think splitting your statements onto multiple lines (except for if then else variable initialization) is just insanely bad practice so I never did that. Nice to know it works though, again I will be playing with this and a few other ideas this week.
Truly I was happy to find this worked:
function
hello
(text)
print(text)
end
if
true
then
hello("hi")
else
hello("Confused")
end
I don't mean splitting one long line into multiple lines. I just mean, if you have a line with >128 chars you put the first 128 chars into the clipboard and simulate a paste, then you put the rest (if it is less 128 chars) in and then finally press return and you still have everything in one line and don't have to worry that the Lua interpreter will get confused since it pastes the file exactly like it was before. Is that so hard to understand? xD











