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
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










