I have a question about string concatenation.
I have this example where I am trying to append a value inside a json block with a variable value
example:
clock = os.clock()
body = "{\"name\":\"stringValue\" .. clock }"
print(body)
When I run this I get the following output:
{"name":"stringValue" .. clock }
What I am expecting is something like
{"name":"stringValue0.010117"}
How do I make is so this variables value is added to the string?
"{\"name\":\"stringValue\"" .. clock .. "}"instead. You have to end a string before the concatenation operator.