From c87ee926ff3ce87dcbe61ed930cdd6ee95b224a6 Mon Sep 17 00:00:00 2001 From: Justin Sun Date: Thu, 16 Dec 2021 20:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=81=E7=A8=8B=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E7=9A=84=E6=96=87=E5=AD=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/basic/flow-control.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/flow-control.md b/src/basic/flow-control.md index 340bc7db..1f1a7765 100644 --- a/src/basic/flow-control.md +++ b/src/basic/flow-control.md @@ -14,6 +14,8 @@ if condition == true { } else { // B... } +``` + 该代码读作:若`condition`条件为`true`,则执行`A`代码,否则执行`B`代码. 先看下面代码: