ERLite script1 Lua 기초 문법 정리 Lua 웹사이트 메뉴얼 : Lua 5.1 Reference Manual Lua 5.1 Reference Manual www.lua.org📝 Lua 기초 문법 정리1. 변수 선언Lua는 동적 타입 언어 → 타입을 따로 지정하지 않음luax = 10 -- 숫자name = "Lua" -- 문자열flag = true -- 불리언2. 자료형기본 자료형: nil, boolean, number, string, table, functionluaprint(type(10)) -- numberprint(type("hello")) -- stringprint(type({})) -- table3. 연산자산술: + - * / % ^비교: == ~= =논리: and or notluaa =.. 2026. 3. 12. 이전 1 다음