freeCodeCamp/guide/chinese/logic/conditional-and-bicondition.../index.md

9 lines
770 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Conditional and Biconditional Statements
localeTitle: 有条件和双条件陈述
---
## 有条件和双条件陈述
**条件声明:** “如果”。如果有一件事是真的,那么别的东西是真的或者可能发生。 _例如_如果现在下雨,那么地面会变湿。 _然而_ ,相反(“如果地面潮湿,那么正在下雨”)并不一定如此。
**_Bi_** **条件语句:** “当且仅当”。如果有一件事是真的,那么其他事情就是真的;如果那个别的东西是真的,那么有一点是真的。考虑它的另一种方式是两件事既是真的,也都是假的(不是一个是真的,另一个是假的)。 _示例_当且仅当其边长均为4米时正方形的面积为16立方米。