From d9e2bcc7972885b15abea87e75480f9be3bed68d Mon Sep 17 00:00:00 2001 From: Animesh Srivastava Date: Mon, 22 Jul 2019 00:10:01 +0530 Subject: [PATCH 1/2] Update for.adoc --- Language/Structure/Control Structure/for.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Structure/Control Structure/for.adoc b/Language/Structure/Control Structure/for.adoc index ef56739ba..e28051aa0 100644 --- a/Language/Structure/Control Structure/for.adoc +++ b/Language/Structure/Control Structure/for.adoc @@ -34,7 +34,7 @@ for (initialization; condition; increment) { [float] === Parameters `initialization`: happens first and exactly once. + -`condition`: each time through the loop, `condition` is tested; if it's `true`, the statement block, and the *increment* is executed, then the *condition* is tested again. When the *condition* becomes `false`, the loop ends. + +`condition`: each time through the loop, `condition` is tested; if it's `link:../../../variables/constants/constants[true]`, the statement block, and the *increment* is executed, then the *condition* is tested again. When the *condition* becomes `link:../../../variables/constants/constants[false]`, the loop ends. + `increment`: executed each time through the loop when `contition` is true. -- From cf33e75db998131ee8a8e1d072d56c1bb502954c Mon Sep 17 00:00:00 2001 From: Animesh Srivastava Date: Mon, 22 Jul 2019 10:37:08 +0530 Subject: [PATCH 2/2] Update Language/Structure/Control Structure/for.adoc Co-Authored-By: per1234 --- Language/Structure/Control Structure/for.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Structure/Control Structure/for.adoc b/Language/Structure/Control Structure/for.adoc index e28051aa0..a2410a4da 100644 --- a/Language/Structure/Control Structure/for.adoc +++ b/Language/Structure/Control Structure/for.adoc @@ -35,7 +35,7 @@ for (initialization; condition; increment) { === Parameters `initialization`: happens first and exactly once. + `condition`: each time through the loop, `condition` is tested; if it's `link:../../../variables/constants/constants[true]`, the statement block, and the *increment* is executed, then the *condition* is tested again. When the *condition* becomes `link:../../../variables/constants/constants[false]`, the loop ends. + -`increment`: executed each time through the loop when `contition` is true. +`increment`: executed each time through the loop when `contition` is link:../../../variables/constants/constants[`true`]. -- // OVERVIEW SECTION ENDS