As long as you have previous programming experience and a knowledge of logic, you’ll only need to know the syntax.
if statements:
if condition then print( true ) end
Conditionals:
== (equal to)
not (the reverse of this statement)
and (is this statement and this statement true)
!= (not equal to)
Then the standard more than, less than etc
Tables/Objects/Arrays:
table = { key = "value", }
Variable aren’t type specific:
local var = 0 -- Private variable var2 = 0 -- Public variable
Objects:
object:Method() object.Variable
Comments:
-- Single line comment --[[ Multi-line comment ]]
That’s about it really.
Edit: Oops, forgot loops
for i=1, 10 do print( i ) -- Do stuff a certain amount of times end while true do -- true = condition print( "hello" ) break -- Stop a loop end for k,v in pairs( table ) do -- For each item in a table print( k, v ) end