Most of the Lua scripts I see posted here are without the use of "Tabbing" which imho makes the code look alot cleaner.
For those of you that don't know tabs in coding is when you press the "TAB" button in say notepad++ and it moves it one "column" further just for better look and cleaner scripts that don't give you a headache.
Another argument is that you can also see where an "if" statement ends and where a "function" ends.
I'll show an example, first a script using tabbing.
As you can see this looks alot better than this script that doesn't use tabbing.
So please the next time you decide to post a Lua script, could you be kind enough to post it like the first example with the usage of tabbing.
For those of you that don't know tabs in coding is when you press the "TAB" button in say notepad++ and it moves it one "column" further just for better look and cleaner scripts that don't give you a headache.
Another argument is that you can also see where an "if" statement ends and where a "function" ends.
its also easier to find/notice/trace and correct any errors if its tabbed properly
I'll show an example, first a script using tabbing.
Lua:
function blabla()
if bla == bla then
print("bla = bla")
end
end
Lua:
function blabla()
if bla == bla then
print("bla = bla")
end
end
Last edited by a moderator: