If Else, Ternary Operator and many more - making decisions in Unity Scripts @PitiITNet
If Else, Ternary Operator and many more - making decisions in Unity Scripts  @PitiITNet
Uploaded February 2022 | Updated September 2026, 2 days ago
In this episode we will explore how to make decisions in C# code. This tutorials go far beyond the basics like if else, ternary operator, we cover also coalescing operator, checking nulls an many more.

Got any questions? Join our discord:
discord.gg/hrZF93sCkc
If you would like to have a look at the whole Unity Scripting series:
youtube.com/watch?v=DWj_mPUtuqw&list=PLZyYVAihdXAhjdUy-6BVSCh4Qyjh34iiv

#CSharp #Unity #CodingFundamentals

00:00 Intro
00:10 The basics
00:23 If
01:00 DON'T DO THAT
01:18 Else
01:29 Chaining ifs
02:26 Switch
03:16 Switch's default
03:35 Combining values in switch
03:45 Switch assignment
04:10 Ternary operator
04:48 Complex conditions
06:39 Null coalescing
07:07 Null coalescing assignment
If Else, Ternary Operator and many more - making decisions in Unity ScriptsGame Dev Discussion - How to structure files in a project?Unity Tutorial: Sprite Sorting in Top Down Games (Single & Multiple Sprites!)Lets create Skyrims FUS RO DAH in Unity!Unity Tips & Tricks - Randomize Animations in 1 MinuteHow I Use Suno AI to Generate Game Music - Practical Tips for Unity DevsLow Poly Rocks - Game Assets Blender TutorialUnity Tutorial - Lets add more than ONE tag to our game objectsUnity Tutorial: Power Up Blocks (Mario Style)Simple Enemy AI in Unity (Patrol, Chase, Attack)Unity Tutorial: Dashing like in Celeste & Hollow KnightWho has the gold? 1st Community Game Jam Results
PitiIT |

If Else, Ternary Operator and many more - making decisions in Unity Scripts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER