From f88799dc85fdc0e2be177629ff7c4c6972791e4c Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 26 Dec 2024 09:16:03 +0200 Subject: [PATCH] continue: add page (#15243) --- pages/common/continue.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/common/continue.md diff --git a/pages/common/continue.md b/pages/common/continue.md new file mode 100644 index 0000000000..acae8ca0b0 --- /dev/null +++ b/pages/common/continue.md @@ -0,0 +1,12 @@ +# continue + +> Skip to the next iteration of a `for`, `while`, `until` or `select` loop. +> More information: . + +- Skip to the next iteration: + +`while :; do continue; echo "This will never be reached"; done` + +- Skip the next iteration from within a nested loop: + +`for i in {1..3}; do while :; do continue 2; done; done`