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

推薦閱讀
- 零基礎(chǔ)搭建量化投資系統(tǒng):以Python為工具
- DevOps with Kubernetes
- 微服務(wù)與事件驅(qū)動(dòng)架構(gòu)
- C#編程入門指南(上下冊)
- 華為HMS生態(tài)與應(yīng)用開發(fā)實(shí)戰(zhàn)
- 實(shí)戰(zhàn)Java程序設(shè)計(jì)
- C語言程序設(shè)計(jì)教程(第2版)
- C語言程序設(shè)計(jì)
- 云計(jì)算通俗講義(第3版)
- 用戶體驗(yàn)增長:數(shù)字化·智能化·綠色化
- Learning Unity 2D Game Development by Example
- C++語言程序設(shè)計(jì)
- C編程技巧:117個(gè)問題解決方案示例
- Moodle 3 Administration(Third Edition)
- 物聯(lián)網(wǎng)系統(tǒng)架構(gòu)設(shè)計(jì)與邊緣計(jì)算(原書第2版)