Răsfoiți Sursa

Add `else if`

GlitchCode24 7 luni în urmă
părinte
comite
99b4f2494c
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tutorials/shaders/shader_reference/shading_language.rst

+ 3 - 1
tutorials/shaders/shader_reference/shading_language.rst

@@ -551,9 +551,11 @@ Godot Shading language supports the most common types of flow control:
 
 .. code-block:: glsl
 
-    // `if` and `else`.
+    // `if`, `else if` and `else`.
     if (cond) {
 
+    } else if (cond) {
+
     } else {
 
     }