Jump to content




bios:338: [string "test"] :9: 'then' expected


  • You cannot reply to this topic
2 replies to this topic

#1 gheotic

  • Members
  • 64 posts
  • LocationDenmark

Posted 17 January 2013 - 03:33 AM

keep getting this error
can someone tell me how to fix it?

Quote

while true do
shell.run("clear")
local nTime = os.time()
local Time =textutils.formatTime( nTime, false)
;print( "Time: "..textutils.formatTime( nTime, false ) )
sleep(0.25)
print(Time)

if Time == 0:10AM then
term.clear()
print("Time is now 0:10 AMs
end
end

Any help would be appreciated :)

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 January 2013 - 03:37 AM

if Time == "0:10AM" then
you missed the quotes around the string... also line 11 you are missing closing quote and bracket.

#3 gheotic

  • Members
  • 64 posts
  • LocationDenmark

Posted 17 January 2013 - 03:46 AM

Thank you :)





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users