From 449352832e33a1bd9f17aab8039fc6f199917450 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Fri, 29 Jun 2018 15:37:09 -0300 Subject: Improve readability of page for do-loops Highlight statements in syntax sections Change-Id: I755ca4f7bd9aaeb1ee7183640523b8a790e560ac Reviewed-on: https://gerrit.libreoffice.org/56728 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/shared/03090201.xhp | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/source/text/sbasic/shared/03090201.xhp b/source/text/sbasic/shared/03090201.xhp index d0d17ce90f..9606ac66b5 100644 --- a/source/text/sbasic/shared/03090201.xhp +++ b/source/text/sbasic/shared/03090201.xhp @@ -42,17 +42,17 @@ Syntax -Do [{While | Until} condition = True] +Do [{While | Until} condition = True] statement block -[Exit Do] +[Exit Do] statement block -Loop +Loop or -Do +Do statement block -[Exit Do] +[Exit Do] statement block -Loop [{While | Until} condition = True] +Loop [{While | Until} condition = True] Parameters/Elements Condition: A comparison, numeric or string expression, that evaluates either True or False. @@ -60,28 +60,28 @@ The Do...Loop statement executes a loop as long as, or until, a certain condition is True. The condition for exiting the loop must be entered following either the Do or the Loop statement. The following examples are valid combinations: Syntax -Do While condition = True +Do While condition = True ...statement block -Loop +Loop The statement block between the Do While and the Loop statements is repeated so long as the condition is true. -Do Until condition = True +Do Until condition = True ...statement block -Loop +Loop The statement block between the Do Until and the Loop statements is repeated if the condition so long as the condition is false. -Do +Do ...statement block -Loop While condition = True +Loop While condition = True The statement block between the Do and the Loop statements repeats so long as the condition is true. -Do +Do ...statement block -Loop Until condition = True +Loop Until condition = True The statement block between the Do and the Loop statements repeats until the condition is true. Use the Exit Do statement to unconditionally end the loop. You can add this statement anywhere in a Do...Loop statement. You can also define an exit condition using the If...Then structure as follows: -Do... +Do... statements -If condition = True Then Exit Do +If condition = True Then Exit Do statements -Loop... +Loop... Example @@ -100,4 +100,4 @@ - \ No newline at end of file + -- cgit v1.2.3