Computercraft Help? bios:338: [string "ifthen"]:9: 'then' expected

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

natenat3p

New Member
Jul 29, 2019
2
0
0
here is the code.
Code:
print("Hello World!")
local x = 6
print("Variable: "..x)
 
if x>5 then
  print("Greater!")
elseif x<5
  print("Lesser!")
else
  print("equal")
end
print("We're Done!")

NOTE: this is just a tutorial code. I am learning. XD
it wouldn't let me post anything in the computercraft help forum. :/
 

beringtom

New Member
Jul 29, 2019
134
0
0
print("Hello World!")
local x = 6
print("Variable: "..x)

if x>5
then
print("Greater!")
elseif x<5
then
print("Lesser!")
else
print("equal")
end
print("We're Done!")