OSDN Git Service

Regular updates
[twpd/master.git] / lua.md
diff --git a/lua.md b/lua.md
index fa82493..bf4aea9 100644 (file)
--- a/lua.md
+++ b/lua.md
@@ -61,7 +61,7 @@ title: Lua
 
     if condition then
       print("yes")
-    elsif condition then
+    elseif condition then
       print("maybe")
     else
       print("no")
@@ -183,8 +183,9 @@ title: Lua
        -
 
     -- Logic (and/or)
-    nil and 10     --> 10
+    nil and false  --> nil
     false and nil  --> false
+    0 and 20       --> 20
     10 and 20      --> 20