mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Add else if
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user