Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do I put a value in text?

Asked by
Mystdar 352 Moderation Voter
9 years ago

I know in Python you can do (example)

print ("The amount of seconds is:", seconds) -- and it will print The amount of seconds is: and then the value of seconds.

I have seen it been done in Lua before too using .. something .. I think but I can't remember. Thanks

1 answer

Log in to vote
2
Answered by
Spectrobz 140
9 years ago
print ("The amount of seconds is: " .. seconds)

This is what you want to do.

0
Ah, thanks. Mystdar 352 — 9y
1
The literal name of joining values to create a string is called string concatenation. Just wanted to put that out there. Spongocardo 1991 — 9y
0
Thanks, I may have know that from Computer science lessons, thanks anyway. Mystdar 352 — 9y
Ad

Answer this question