Guide to the Godot game engine/If conditions

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Guide to the Godot game engine


<-- If statements If conditions Data types-->

Skip to bottom

These keywords are for if statements.

The not keyword reverses the condition that is placed afterword.

As an alternative, you can use "!".

The and keyword checks if the values before and after it are both true.

The or keyword checks if a value before or after it is true.


GDScript