- Learning C# 7 By Developing Games with Unity 2017(Third Edition)
- Micael DaGra?a Greg Lukosek
- 95字
- 2021-07-02 19:59:39
Checking many conditions in an if statement
Sometimes, you will want your if statements to check many conditions before any code block is executed. This is very easy to do. There are two more logical operators that you can use:
- AND: This is used by putting && between the conditions being checked. The code inside the curly brackets is executed only if all the conditions are true:

- OR: This is used by putting || between the conditions being checked. Then, the code inside the curly brackets is executed if any of the conditions are true:

推薦閱讀
- INSTANT OpenCV Starter
- 深入實踐Spring Boot
- VSTO開發(fā)入門教程
- C語言程序設(shè)計案例式教程
- Mastering Predictive Analytics with Python
- C語言程序設(shè)計
- 編程與類型系統(tǒng)
- QGIS Python Programming Cookbook(Second Edition)
- 小程序從0到1:微信全棧工程師一本通
- Learning Kotlin by building Android Applications
- Learn C Programming
- Slick2D Game Development
- 深入理解MySQL主從原理
- jQuery權(quán)威指南
- Real-time Web Application Development using Vert.x 2.0