Jump to content
  • 0

Help I keep getting error <Eos> expected near else


LekanAk

Question

Posted

I finished making a script and as I decided to test I got an error which said <eos> expected near else.

Im not sure if in being stupid but here's what I wrote

if DestrierandGepard == nil then gg.alert('Canceled') end
else 
    if DestrierandGepard[1] == true then Destrier() end
    if DestrierandGepard[2] == true then Gepard() end
    if DestrierandGepard[3] ==true then Back() end
end

Screenshot_2018-08-29-09-06-54.jpg

3 answers to this question

Recommended Posts

Posted
4 hours ago, Enyby said:

If you use "else" then "end" after "then" do not need. Read about "if" syntax in lua.

I do not understand

And where is the if syntax in lua

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.