This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Stormkrow's profile picture

[Solved][Error][Question] Adding a string to a set sentence

Started by Stormkrow, 31 May 2012 - 09:03 AM
Stormkrow #1
Posted 31 May 2012 - 11:03 AM
Hi guys:)

Im a bit new to computercraft and im trying to edit the startup of a computer. I want it to startup with a set sentence with strings that go into the sentence that i can change as time goes on. This is the code:

local Name = "Testversion "
local Version = "BETA 0.1"

print("Welcome to "Name..Version)

It pops up with an error reading:

bios:206: [string "startup"] : 4 : ')' expected

Any help? Please do! Im still a noob:P
my_hat_stinks #2
Posted 31 May 2012 - 11:05 AM
Should be
print("Welcome to "..Name..Version)


You missed a ".."
Stormkrow #3
Posted 31 May 2012 - 11:15 AM
There we go! Thanks a ton! :)/>/>