Teaching Newbies since 2014

kauress

  • Home
  • Javascript ❤
    • JavaScript
    • Node.js
  • WebDev Tuts
  • screencasts
  • Resources
  • VR & AR
  • Contact
  • Github
  • Twitter
  • YouTube
  • RSS
  • C++
You are here: Home / Unity3D / Introduction to C# in Unity #12: 🥑 else block

February 17, 2021 by: Kauress

Introduction to C# in Unity #12: 🥑 else block

🥑 Use else to specify a block of code to be executed, if the same condition is false

else
{
  //code block to execute if the condition is false
}
Introduction to C# in Unity #11: 🥑 If conditional statement
Introduction to C# in Unity #13: 🥑 If – else if – else conditional statements

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2021 ·Kauress