Lua 的邏輯運算會將false 與nil 視為false,其它值視為true。 所以and、or 運算寫起來就會像下面這樣。 1 2 3 4 5 6 7 8, print(10 or 20)
確定! 回上一頁