Lua - Control Statement

Ref : http://www.lua.org/manual/5.1/


* Compare

if (left < right) then
 elseif (left == right) then
 else
 end


* Loop

for i = 1, 10, 1 do
  
end


* Loop for array

for item in expression do
  
end


* Function definition

function foo()
  
end


* Print message

print("Hello world!")


** Wow Register

this:RegisterEvent("PLAYER_TARGET_CHANGED")

'Development > Etc.' 카테고리의 다른 글

What's new in Tomcat 8  (0) 2015.03.17
Lua - MessageFrame:AddMessage  (0) 2011.03.12
PHP - Detects what compression file uses  (0) 2009.07.07
PHP on IIS 7.0, 6.0, 5.1 with Fast CGI  (0) 2009.02.01
Test-First Development for Rails  (0) 2007.08.07