create account

Game Development for Kids with Godot Engine - If-else Statement in GDScript by devpress

View this thread on: hive.blogpeakd.comecency.com
· @devpress ·
$14.79
Game Development for Kids with Godot Engine - If-else Statement in GDScript
In this post we are going to take a look at How to write if-else statement in GDScript using Godot Engine.

In previous tutorial we covered how to make the dictionary in the GDscript in Godot Engine. So in this tutorial we will take a look at the traditional if-else statement. This is similar to any other programming language and the syntax looks pretty much similar to the python syntax. 

 Along with the if-else statement the loops are pretty much interesting too. I wish to cover them in near future. As of now I found out the use for the if-else in your conditional programming. 

So this is 8th tutorial in the series. And the previous one I wish to link below and hopefully you would find some value out of them. Make sure that you download the godot engine and follow the tutorial series one after another or as you please. 

Do check out the tutorials in the below table of contents and see which one applies for your current learning trail. This would give you some direction on how to make use of the if-else statement in GDscript. 

---

![](https://images.hive.blog/DQmZq5G8gzFQ2ybjMAzBaTRgRFabgbsvSKRbdfKxZCS1wgT/gdart.png)

---

So let's get started with below video and you can check the TOC below if you want to access the previous tutorials.

---

### Table of Contents of Godot Engine Tutorials

---

- [Godot Engine - Create New Project](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-new-project)
- [Godot Engine - Change Scene Background](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with)
- [Godot Engine - Add Image Background](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-add-image-background)
- [Godot Engine - Change Icon of Boot Splash Screen](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-change-icon-of-boot-splash)
-  [Godot Engine - Create GDScript](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-gdscript)
-  [Godot Engine - Create Function](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-function-in-gdscript)
- [Godot Engine - Create Dictionary](https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-dictionary-in-gdscript)
---

Now check out the Video tutorial below in order to Create if-else Statement in GDScript for your game project.

---

https://www.youtube.com/watch?v=HibXD6_cKlM

---
If you have learned the python or any other simple language like say Lua then you would find learning some of the loops and conditional statements from the GDscript lot easier to work with. I'd recommend you to check out the previous tutorials too. That would give you a direction on what to expect and what to do in that case. 


If you want to try out the similar game development tutorials using the gdevelop, you can follow this tutorial trail of [GDevelop Tutorials](https://www.youtube.com/playlist?list=PLUY1lsOTtPeJuokmVnFqyXTKdOpgI2VWz).

I hope the current tutorial was useful to you.

We will continue the further game development topic in next post.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 307 others
properties (23)
authordevpress
permlinkgame-development-for-kids-with-godot-engine-if-else-statement-in-gdscript
categoryhive-122108
json_metadata{"tags":["archon","aeneas","cent","stem","hivelist","broadhive","lern"],"image":["https://images.hive.blog/DQmZq5G8gzFQ2ybjMAzBaTRgRFabgbsvSKRbdfKxZCS1wgT/gdart.png","https://img.youtube.com/vi/HibXD6_cKlM/0.jpg"],"links":["https://hive.blog/hive-122108/@devpress/game-development-for-kids-with-godot-engine-create-new-project"],"app":"hiveblog/0.1","format":"markdown"}
created2021-10-26 17:53:45
last_update2021-10-26 17:53:45
depth0
children2
last_payout2021-11-02 17:53:45
cashout_time1969-12-31 23:59:59
total_payout_value7.471 HBD
curator_payout_value7.323 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,160
author_reputation55,061,325,071,240
root_title"Game Development for Kids with Godot Engine - If-else Statement in GDScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,308,231
net_rshares13,123,172,912,603
author_curate_reward""
vote details (371)
@omar401 ·
the website looks very high quality
Thanks
👎  
properties (23)
authoromar401
permlinkre-devpress-2021117t115252933z
categoryhive-122108
json_metadata{"tags":["archon","aeneas","cent","stem","hivelist","broadhive","lern"],"app":"ecency/3.0.19-vision","format":"markdown+html"}
created2021-11-07 10:52:51
last_update2021-11-07 10:52:51
depth1
children0
last_payout2021-11-14 10:52:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation-21,639,384,321
root_title"Game Development for Kids with Godot Engine - If-else Statement in GDScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,570,623
net_rshares-2,760,838,597
author_curate_reward""
vote details (1)
@pachamamakids ·
Great post!
properties (22)
authorpachamamakids
permlinkre-devpress-20211027t11192631z
categoryhive-122108
json_metadata{"tags":["hive-122108","archon","aeneas","cent","stem","hivelist","broadhive","lern"],"app":"ecency/3.0.23-mobile","format":"markdown+html"}
created2021-10-27 14:20:00
last_update2021-10-27 14:20:00
depth1
children0
last_payout2021-11-03 14:20:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation1,272,800,126,544
root_title"Game Development for Kids with Godot Engine - If-else Statement in GDScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id107,326,800
net_rshares0