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

Unexpected Symbol

Started by Scratch, 01 November 2012 - 04:19 PM
Scratch #1
Posted 01 November 2012 - 05:19 PM
I have the code:

print("The time is: "..hours.."."..minutes.."."..seconds..)

upon compiling the program, I recieve the error "unexpected symbol"

I am getting this issue a lot since using ComputerCraft, and it's very frustrating

Does anyone know what's wrong?
PixelToast #2
Posted 01 November 2012 - 05:21 PM
you have an extra concatenation operator
let me fix that for you:

print("The time is: "..hours.."."..minutes.."."..seconds)
also make sure hours minutes and seconds are strings or numbers :3