Tutorial 6: Basic Conditional Statements in GDScript

GDScript of Basic Conditional Statements

The basic GDScript conditional statements shown above is pretty much straightforward. It simply uses the if, elif and else statements. You can download the source code here.

In the example, the second condition is satisfied because a is less than 9, as shown in the image below.

Output Console

As for your practice, try changing 7 equal to 1 or any number greater than 9 and see the results.

0 comments:

Post a Comment

© 2020 by Emman Lijesta, all rights reserved. Powered by Blogger.