From 22e7427b16b9c0363eae9e07c68e27b4bac3cef0 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Sat, 25 Feb 2023 15:32:39 +0800 Subject: [PATCH] R --- ...20230214.1 ⭐️ Lua loops how to use while and repeat until.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/published/20230214.1 ⭐️ Lua loops how to use while and repeat until.md b/published/20230214.1 ⭐️ Lua loops how to use while and repeat until.md index e5bf4bf6f5..6a49ad26a2 100644 --- a/published/20230214.1 ⭐️ Lua loops how to use while and repeat until.md +++ b/published/20230214.1 ⭐️ Lua loops how to use while and repeat until.md @@ -35,7 +35,7 @@ Lua 循环:如何使用 while 和 repeat until - `foo > 3 and bar < 1`:`foo` 是否大于 3 而 `bar` 小于 1?要满足这个条件,`foo` 变量必须在 `bar` 为 0 的同时为 4 或更大。 - `foo> 3 or bar < 1`:`foo` 是否大于 3?或者,`bar` 是否小于 1?如果 `foo` 是 4 或更大,或者 `bar` 是 0,那么这个条件就是真的。如果 `foo` 是 4 或更大,而 `bar` 是 0,会怎样?答案出现在本文的后面。 -### While 循环 +### while 循环 只要满足某个条件,while 循环就会执行指令。例如,假设你正在开发一个应用来监测正在进行的僵尸末日。当没有剩余的僵尸时,就不再有僵尸末日了: