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

推薦閱讀
- 數(shù)據(jù)庫(kù)程序員面試筆試真題與解析
- Redis Applied Design Patterns
- Android項(xiàng)目開(kāi)發(fā)入門(mén)教程
- HTML5+CSS3基礎(chǔ)開(kāi)發(fā)教程(第2版)
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Python高效開(kāi)發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第2版)
- Java設(shè)計(jì)模式及實(shí)踐
- Hands-On RESTful Web Services with Go
- Learning Apache Mahout Classification
- Python數(shù)據(jù)分析從0到1
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- .NET 4.5 Parallel Extensions Cookbook
- 區(qū)塊鏈國(guó)產(chǎn)化實(shí)踐指南:基于Fabric 2.0
- Python開(kāi)發(fā)基礎(chǔ)
- Python編程入門(mén)(第3版)