瀏覽代碼

Add bang operator to gdscript style guide (#6828)

Thiago Lages de Alencar 2 年之前
父節點
當前提交
6095b20174
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tutorials/scripting/gdscript/gdscript_styleguide.rst

+ 1 - 0
tutorials/scripting/gdscript/gdscript_styleguide.rst

@@ -414,6 +414,7 @@ Prefer the plain English versions of boolean operators, as they are the most acc
 
 - Use ``and`` instead of ``&&``.
 - Use ``or`` instead of ``||``.
+- Use ``not`` instead of ``!``.
 
 You may also use parentheses around boolean operators to clear any ambiguity.
 This can make long expressions easier to read.