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

Published: 16 February 2022
on channel: PitiIT
599
51

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  
If you would like to have a look at the whole Unity Scripting series:
   • Unity Scripting Tutorial: Practical i...  

#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


Watch video If Else, Ternary Operator and many more - making decisions in Unity Scripts online without registration, duration online in high quality. This video was added by user PitiIT 16 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 599 once and liked it 51 people.