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
10 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
10 years ago
print ("The amount of seconds is: " .. seconds)

This is what you want to do.

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

Answer this question