Breaking long string in code
Posted: Thursday 25 August 2016 10:46
Hi guys,
I cannot figure out how to break a long code line in lua.
I have commandArray['SendEmail'] = 'subject#looong body sring#email'
All working just fine but not very comfortable to edit as it is all in one script line (not the output of the email, but the loa code itself).
How do I berak the code into more lines? Tried several thing but no luck.
I would like to achieve somethig like:
commandArray['SendEmail'] = 'subject#body part 1 /break
.. body part 2 /break
.. body part 3 #email'
to make it more convenient for editing.
Thanks
I cannot figure out how to break a long code line in lua.
I have commandArray['SendEmail'] = 'subject#looong body sring#email'
All working just fine but not very comfortable to edit as it is all in one script line (not the output of the email, but the loa code itself).
How do I berak the code into more lines? Tried several thing but no luck.
I would like to achieve somethig like:
commandArray['SendEmail'] = 'subject#body part 1 /break
.. body part 2 /break
.. body part 3 #email'
to make it more convenient for editing.
Thanks