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, duration online in high quality that is uploaded to the channel PitiIT 16 February 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 599 times and liked it 51 visitors.