mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-08 10:10:54 +03:00
Add bang operator to operators table (#6558)
* Add bang operator to operators table * Add symbolic aliases for `and` & `or` * Remove comma from operators table * Add bang to the aliases list --------- Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6095b20174
commit
8a112dcef2
@@ -274,16 +274,19 @@ The following is the list of supported operators and their precedence.
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
| ``in`` | Inclusion checker (when used with |
|
||||
| | control flow keywords or in a |
|
||||
| | standalone expression). |
|
||||
| | standalone expression) |
|
||||
| | |
|
||||
| | Content iterator (when used with the |
|
||||
| | for_ keyword). |
|
||||
| | for_ keyword) |
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
| ``not`` | Boolean NOT |
|
||||
| ``not`` ``!`` | Boolean NOT and its |
|
||||
| | :ref:`aliases<boolean_operators>` |
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
| ``and`` | Boolean AND |
|
||||
| ``and`` ``&&`` | Boolean AND and its |
|
||||
| | :ref:`aliases<boolean_operators>` |
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
| ``or`` | Boolean OR |
|
||||
| ``or`` ``||`` | Boolean OR and its |
|
||||
| | :ref:`aliases<boolean_operators>` |
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
| ``if x else`` | Ternary if/else |
|
||||
+--------------------------------------------------------------------------------+-------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user