Posted 18 May 2013 - 01:35 AM
I've tried a couple different things to try and figure out how I would use this turtle.compare() thing, but I can't figure it out.
This doesn't work:
Nor does this, whether I write it as turtle.compare() or turtle.compare, true or "true":
I even tried:
During my experience with Java I figured the first example could work, but maybe I just wasn't using the variable a correctly. (Lua confuses me after I've done Java coding for so long. Lua skips over so many convenient details in the code language, I just never know what's going to happen.)
I've tried looking over code from some other programs I've grabbed from the forum, but everybody seems to do things so minimalistically with their coding, I just can't figure out how to apply any of it differently.
Help is appreciated! Thanks!
This doesn't work:
a = turtle.compare()
if (a == true) then
print("Hi")
end
Nor does this, whether I write it as turtle.compare() or turtle.compare, true or "true":
if (turtle.compare == true) then
print("Hi")
end
I even tried:
if (turtle.compare) then
print("Hi")
end
During my experience with Java I figured the first example could work, but maybe I just wasn't using the variable a correctly. (Lua confuses me after I've done Java coding for so long. Lua skips over so many convenient details in the code language, I just never know what's going to happen.)
I've tried looking over code from some other programs I've grabbed from the forum, but everybody seems to do things so minimalistically with their coding, I just can't figure out how to apply any of it differently.
Help is appreciated! Thanks!