Skip to content

Commit 3d1bd08

Browse files
authored
Merge pull request #10693 from GlitchCode24/master
Add `else if` to shading reference
2 parents 3870586 + 619edd2 commit 3d1bd08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tutorials/shaders/shader_reference/shading_language.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,11 @@ Godot Shading language supports the most common types of flow control:
551551

552552
.. code-block:: glsl
553553
554-
// `if` and `else`.
554+
// `if`, `else if` and `else`.
555555
if (cond) {
556556
557+
} else if (other_cond) {
558+
557559
} else {
558560
559561
}

0 commit comments

Comments
 (0)