From 54f2ef4ba2b5145dda782d329e7db4b44c67f1b5 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Thu, 14 May 2020 18:03:05 +0200 Subject: [PATCH] GDScript: Add type casting to the precedence table --- getting_started/scripting/gdscript/gdscript_basics.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/getting_started/scripting/gdscript/gdscript_basics.rst b/getting_started/scripting/gdscript/gdscript_basics.rst index fee8bdb34..88f12dcf5 100644 --- a/getting_started/scripting/gdscript/gdscript_basics.rst +++ b/getting_started/scripting/gdscript/gdscript_basics.rst @@ -271,6 +271,8 @@ The following is the list of supported operators and their precedence. +---------------------------------------------------------------+-----------------------------------------+ | ``if x else`` | Ternary if/else | +---------------------------------------------------------------+-----------------------------------------+ +| ``as`` | Type casting | ++---------------------------------------------------------------+-----------------------------------------+ | ``=`` ``+=`` ``-=`` ``*=`` ``/=`` ``%=`` ``&=`` ``|=`` | Assignment (lowest priority) | +---------------------------------------------------------------+-----------------------------------------+