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

Attempted To Concatenate String And Nil? < Wtf?

Started by rockymc, 04 February 2012 - 08:16 PM
rockymc #1
Posted 04 February 2012 - 09:16 PM
Image:




WTF does this mean?

FIX: added a 'return'.
Casper7526 #2
Posted 04 February 2012 - 09:20 PM
It means your are trying to add a nil value to a string. A nil value is not "" it literally is a blank piece of data therefor it doesn't play well when trying to add it to something else.


if not (fs.exists("rom/programs/" .. cc))

Thats your nil value, cc isn't defined before it's called.
rockymc #3
Posted 04 February 2012 - 09:20 PM
I'm still getting that error by putting two sleep(1) in the same line. Problems?

Thanks!
FuzzyPurp #4
Posted 05 February 2012 - 07:32 AM
CC-get isn't working on my end, could be his issue..testing