使用单等于号来向变量赋值,而不是像在前一个条件中那样使用双等于号 (==) 来比较值。
Use the single equal sign to assign a value to a variable, unlike the double equal sign (==), as in the previous condition, which compare the values.
避免在if和while语句的条件部分进行赋值。
Avoid doing assignments in the condition part of if and while statements.
对用户来说,最棒的是他们不再局限于简单的赋值;用Lua表达的配置文件可以有注释、条件等。
What makes this excellent for users is that they are no longer restricted to simple assignments of values; configuration files expressed as Lua can have comments, conditionals, and more.
应用推荐