Lua is confusing
#2
Then why don't you look at some PHP or Java.

I think then you might change your mind.

As my signature used to say, Lua is similar to English (at least, more so than other languages.)

And it doesn't involve too much complicated symbols or logic.

For example, several of the most common lines you'll see in Lua look something like this:

[lua]
while true do
sleep(5)
if script.Parent.Name == "Box" then
print("This script is running in a box.")
else
print("Script not inside a box. Ending loop.")
break
end
end
[/lua]

In english...

Quote:while this script is running, repeat
every 5 seconds
if the script is inside a "Box"
print "This script is running in a box"
otherwise
print "Script not inside a box. Ending loop."
break the loop
end of if statement
end of loop
Reply


Messages In This Thread
Lua is confusing - by Ark - 05-11-2011, 10:21 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)