[Libreoffice-commits] help.git: source/media source/text

Alain Romedenne (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 19 17:06:17 UTC 2020


 source/media/helpimg/sbasic/ElseIf_fragment.svg       |   22 ++-
 source/media/helpimg/sbasic/If_statement.svg          |   24 ++--
 source/media/helpimg/sbasic/Select-Case_statement.svg |   29 ++--
 source/text/sbasic/shared/03090101.xhp                |   68 +++++++----
 source/text/sbasic/shared/03090102.xhp                |   20 ++-
 source/text/sbasic/shared/03090103.xhp                |   15 +-
 source/text/sbasic/shared/03090201.xhp                |  107 ++++++++----------
 source/text/sbasic/shared/03090203.xhp                |   50 +++++---
 8 files changed, 198 insertions(+), 137 deletions(-)

New commits:
commit 79b88ef30847c5f6aa72ed8a1695879eecb81113
Author:     Alain Romedenne <LibreOfficiant at sfr.fr>
AuthorDate: Mon Jun 15 16:44:54 2020 +0200
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Fri Jun 19 19:05:57 2020 +0200

    tdf#131416 Basic statements syntax diagrams
    
    - Do Until/Do While
    - If ElseIf EndIf
    - While
    
    - minor fix to Select Case statement
    
    Change-Id: Ie72759b2277c6d128ea7db4af68f76560f955f4e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96345
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/source/media/helpimg/sbasic/ElseIf_fragment.svg b/source/media/helpimg/sbasic/ElseIf_fragment.svg
index b423bc7fb..49759d441 100644
--- a/source/media/helpimg/sbasic/ElseIf_fragment.svg
+++ b/source/media/helpimg/sbasic/ElseIf_fragment.svg
@@ -1,4 +1,4 @@
-<svg class="railroad-diagram" height="102" viewBox="0 0 556.5 102" width="556.5" xmlns="http://www.w3.org/2000/svg">
+<svg class="railroad-diagram" height="144" viewBox="0 0 623.5 144" width="623.5" xmlns="http://www.w3.org/2000/svg">
 <g transform="translate(.5 .5)">
 <style>/* <![CDATA[ */
     svg.railroad-diagram {
@@ -29,12 +29,14 @@
 /* ]]> */
 </style><g>
 <path d="M20 41v20m0 -10h20"></path></g><g>
-<path d="M40 51h0.0"></path><path d="M516.5 51h0.0"></path><path d="M40.0 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
-<path d="M70.0 20h416.5"></path></g><path d="M486.5 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M40.0 51h30"></path><g>
-<path d="M70.0 51h0.0"></path><path d="M486.5 51h0.0"></path><path d="M70.0 51h15"></path><g>
-<path d="M85.0 51h0.0"></path><path d="M471.5 51h0.0"></path><g class="terminal">
-<path d="M85.0 51h0.0"></path><path d="M156.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="71.0" x="85.0" y="40"></rect><text x="120.5" y="55">ElseIf</text></g><path d="M156.0 51h10"></path><path d="M166.0 51h10"></path><g class="terminal">
-<path d="M176.0 51h0.0"></path><path d="M272.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="96.5" x="176.0" y="40"></rect><text x="224.25" y="55">condition</text></g><path d="M272.5 51h10"></path><path d="M282.5 51h10"></path><g class="terminal">
-<path d="M292.5 51h0.0"></path><path d="M346.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="292.5" y="40"></rect><text x="319.5" y="55">Then</text></g><path d="M346.5 51h10"></path><path d="M356.5 51h10"></path><g class="terminal">
-<path d="M366.5 51h0.0"></path><path d="M471.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="366.5" y="40"></rect><text x="419.0" y="55">statements</text></g></g><path d="M471.5 51h15"></path><path d="M85.0 51a15 15 0 0 0 -15 15v1a15 15 0 0 0 15 15"></path><g>
-<path d="M85.0 82h386.5"></path></g><path d="M471.5 82a15 15 0 0 0 15 -15v-1a15 15 0 0 0 -15 -15"></path></g><path d="M486.5 51h30"></path></g><path d="M 516.5 51 h 20 m 0 -10 v 20"></path></g></svg>
\ No newline at end of file
+<path d="M40 51h0.0"></path><path d="M583.5 51h0.0"></path><path d="M40.0 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M70.0 20h483.5"></path></g><path d="M553.5 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M40.0 51h30"></path><g>
+<path d="M70.0 51h0.0"></path><path d="M553.5 51h0.0"></path><path d="M70.0 51h15"></path><g>
+<path d="M85.0 51h0.0"></path><path d="M538.5 51h0.0"></path><g>
+<path d="M85.0 51h0.0"></path><path d="M224.5 51h0.0"></path><path d="M85.0 51h30"></path><g class="terminal">
+<path d="M115.0 51h4.25"></path><path d="M190.25 51h4.25"></path><rect height="22" rx="10" ry="10" width="71.0" x="119.25" y="40"></rect><text x="154.75" y="55">ElseIf</text></g><path d="M194.5 51h30"></path><path d="M85.0 51a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M115.0 93h0.0"></path><path d="M194.5 93h0.0"></path><rect height="22" rx="10" ry="10" width="79.5" x="115.0" y="82"></rect><text x="154.75" y="97">Else If</text></g><path d="M194.5 93a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path></g><path d="M224.5 51h10"></path><g class="terminal">
+<path d="M234.5 51h0.0"></path><path d="M339.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="234.5" y="40"></rect><text x="287.0" y="55">expression</text></g><path d="M339.5 51h10"></path><path d="M349.5 51h10"></path><g class="terminal">
+<path d="M359.5 51h0.0"></path><path d="M413.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="359.5" y="40"></rect><text x="386.5" y="55">Then</text></g><path d="M413.5 51h10"></path><path d="M423.5 51h10"></path><g class="terminal">
+<path d="M433.5 51h0.0"></path><path d="M538.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="433.5" y="40"></rect><text x="486.0" y="55">statements</text></g></g><path d="M538.5 51h15"></path><path d="M85.0 51a15 15 0 0 0 -15 15v43a15 15 0 0 0 15 15"></path><g>
+<path d="M85.0 124h453.5"></path></g><path d="M538.5 124a15 15 0 0 0 15 -15v-43a15 15 0 0 0 -15 -15"></path></g><path d="M553.5 51h30"></path></g><path d="M 583.5 51 h 20 m 0 -10 v 20"></path></g></svg>
\ No newline at end of file
diff --git a/source/media/helpimg/sbasic/If_statement.svg b/source/media/helpimg/sbasic/If_statement.svg
index 2717455dc..cd37c12b5 100644
--- a/source/media/helpimg/sbasic/If_statement.svg
+++ b/source/media/helpimg/sbasic/If_statement.svg
@@ -1,4 +1,4 @@
-<svg class="railroad-diagram" height="93" viewBox="0 0 725.5 93" width="725.5" xmlns="http://www.w3.org/2000/svg">
+<svg class="railroad-diagram" height="124" viewBox="0 0 825.5 124" width="825.5" xmlns="http://www.w3.org/2000/svg">
 <g transform="translate(.5 .5)">
 <style>/* <![CDATA[ */
     svg.railroad-diagram {
@@ -28,12 +28,16 @@
 
 /* ]]> */
 </style><g>
-<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal">
-<path d="M50 31h0.0"></path><path d="M87.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="37.0" x="50.0" y="20"></rect><text x="68.5" y="35">If</text></g><path d="M87.0 31h10"></path><path d="M97.0 31h10"></path><g class="terminal">
-<path d="M107.0 31h0.0"></path><path d="M203.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="96.5" x="107.0" y="20"></rect><text x="155.25" y="35">condition</text></g><path d="M203.5 31h10"></path><path d="M213.5 31h10"></path><g class="terminal">
-<path d="M223.5 31h0.0"></path><path d="M277.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="223.5" y="20"></rect><text x="250.5" y="35">Then</text></g><path d="M277.5 31h10"></path><path d="M287.5 31h10"></path><g class="terminal">
-<path d="M297.5 31h0.0"></path><path d="M402.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="297.5" y="20"></rect><text x="350.0" y="35">statements</text></g><path d="M402.5 31h10"></path><g>
-<path d="M412.5 31h0.0"></path><path d="M594.5 31h0.0"></path><path d="M412.5 31h30"></path><g>
-<path d="M442.5 31h122.0"></path></g><path d="M564.5 31h30"></path><path d="M412.5 31a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g class="non-terminal">
-<path d="M442.5 62h0.0"></path><path d="M564.5 62h0.0"></path><rect height="22" width="122.0" x="442.5" y="51"></rect><text x="503.5" y="66">Else options</text></g><path d="M564.5 62a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path></g><path d="M594.5 31h10"></path><g class="terminal">
-<path d="M604.5 31h0.0"></path><path d="M675.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="71.0" x="604.5" y="20"></rect><text x="640.0" y="35">End If</text></g><path d="M675.5 31h10"></path><path d="M 685.5 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file
+<path d="M20 41v20m10 -20v20m-10 -10h20"></path></g><path d="M40 51h10"></path><g class="terminal">
+<path d="M50 51h0.0"></path><path d="M87.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="37.0" x="50.0" y="40"></rect><text x="68.5" y="55">If</text></g><path d="M87.0 51h10"></path><path d="M97.0 51h10"></path><g class="terminal">
+<path d="M107.0 51h0.0"></path><path d="M203.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="96.5" x="107.0" y="40"></rect><text x="155.25" y="55">condition</text></g><path d="M203.5 51h10"></path><path d="M213.5 51h10"></path><g class="terminal">
+<path d="M223.5 51h0.0"></path><path d="M277.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="223.5" y="40"></rect><text x="250.5" y="55">Then</text></g><path d="M277.5 51h10"></path><path d="M287.5 51h10"></path><g class="terminal">
+<path d="M297.5 51h0.0"></path><path d="M402.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="297.5" y="40"></rect><text x="350.0" y="55">statements</text></g><path d="M402.5 51h10"></path><g>
+<path d="M412.5 51h0.0"></path><path d="M594.5 51h0.0"></path><path d="M412.5 51h30"></path><g>
+<path d="M442.5 51h122.0"></path></g><path d="M564.5 51h30"></path><path d="M412.5 51a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g class="non-terminal">
+<path d="M442.5 82h0.0"></path><path d="M564.5 82h0.0"></path><rect height="22" width="122.0" x="442.5" y="71"></rect><text x="503.5" y="86">Else options</text></g><path d="M564.5 82a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path></g><g>
+<path d="M594.5 51h0.0"></path><path d="M785.5 51h0.0"></path><path d="M594.5 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M624.5 20h131.0"></path></g><path d="M755.5 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M594.5 51h30"></path><g>
+<path d="M624.5 51h0.0"></path><path d="M755.5 51h0.0"></path><path d="M624.5 51h30"></path><g class="terminal">
+<path d="M654.5 51h4.25"></path><path d="M721.25 51h4.25"></path><rect height="22" rx="10" ry="10" width="62.5" x="658.75" y="40"></rect><text x="690.0" y="55">EndIf</text></g><path d="M725.5 51h30"></path><path d="M624.5 51a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M654.5 93h0.0"></path><path d="M725.5 93h0.0"></path><rect height="22" rx="10" ry="10" width="71.0" x="654.5" y="82"></rect><text x="690.0" y="97">End If</text></g><path d="M725.5 93a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path></g><path d="M755.5 51h30"></path></g><path d="M 785.5 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file
diff --git a/source/media/helpimg/sbasic/Select-Case_statement.svg b/source/media/helpimg/sbasic/Select-Case_statement.svg
index 199819461..97c2b49a5 100644
--- a/source/media/helpimg/sbasic/Select-Case_statement.svg
+++ b/source/media/helpimg/sbasic/Select-Case_statement.svg
@@ -1,4 +1,4 @@
-<svg class="railroad-diagram" height="166" viewBox="0 0 762.5 166" width="762.5" xmlns="http://www.w3.org/2000/svg">
+<svg class="railroad-diagram" height="166" viewBox="0 0 845.0 166" width="845.0" xmlns="http://www.w3.org/2000/svg">
 <g transform="translate(.5 .5)">
 <style>/* <![CDATA[ */
     svg.railroad-diagram {
@@ -29,16 +29,17 @@
 /* ]]> */
 </style><g>
 <path d="M20 63v20m10 -20v20m-10 -10h20"></path></g><path d="M40 73h10"></path><g>
-<path d="M50 73h0.0"></path><path d="M712.5 73h0.0"></path><g class="terminal">
-<path d="M50.0 73h0.0"></path><path d="M163.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="113.5" x="50.0" y="62"></rect><text x="106.75" y="77">Select Case</text></g><path d="M163.5 73h10"></path><path d="M173.5 73h10"></path><g>
-<path d="M183.5 73h0.0"></path><path d="M587.5 73h0.0"></path><path d="M183.5 73h15"></path><g>
-<path d="M198.5 73h0.0"></path><path d="M572.5 73h0.0"></path><g class="terminal">
-<path d="M198.5 73h0.0"></path><path d="M252.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="198.5" y="62"></rect><text x="225.5" y="77">Case</text></g><path d="M252.5 73h10"></path><g>
-<path d="M262.5 73h0.0"></path><path d="M457.5 73h0.0"></path><path d="M262.5 73a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path><g class="terminal">
-<path d="M292.5 31h40.5"></path><path d="M387.0 31h40.5"></path><rect height="22" rx="10" ry="10" width="54.0" x="333.0" y="20"></rect><text x="360.0" y="35">Else</text></g><path d="M427.5 31a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><path d="M262.5 73h30"></path><g>
-<path d="M292.5 73h0.0"></path><path d="M427.5 73h0.0"></path><path d="M292.5 73h15"></path><g class="terminal">
-<path d="M307.5 73h0.0"></path><path d="M412.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="307.5" y="62"></rect><text x="360.0" y="77">expression</text></g><path d="M412.5 73h15"></path><path d="M307.5 73a15 15 0 0 0 -15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
-<path d="M307.5 115h38.25"></path><path d="M374.25 115h38.25"></path><rect height="22" rx="10" ry="10" width="28.5" x="345.75" y="104"></rect><text x="360.0" y="119">,</text></g><path d="M412.5 115a15 15 0 0 0 15 -15v-12a15 15 0 0 0 -15 -15"></path></g><path d="M427.5 73h30"></path></g><path d="M457.5 73h10"></path><g class="terminal">
-<path d="M467.5 73h0.0"></path><path d="M572.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="467.5" y="62"></rect><text x="520.0" y="77">statements</text></g></g><path d="M572.5 73h15"></path><path d="M198.5 73a15 15 0 0 0 -15 15v43a15 15 0 0 0 15 15"></path><g>
-<path d="M198.5 146h374.0"></path></g><path d="M572.5 146a15 15 0 0 0 15 -15v-43a15 15 0 0 0 -15 -15"></path></g><path d="M587.5 73h10"></path><path d="M597.5 73h10"></path><g class="terminal">
-<path d="M607.5 73h0.0"></path><path d="M712.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="607.5" y="62"></rect><text x="660.0" y="77">End Select</text></g></g><path d="M712.5 73h10"></path><path d="M 722.5 73 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file
+<path d="M50 73h0.0"></path><path d="M795.0 73h0.0"></path><g class="terminal">
+<path d="M50.0 73h0.0"></path><path d="M163.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="113.5" x="50.0" y="62"></rect><text x="106.75" y="77">Select Case</text></g><path d="M163.5 73h10"></path><path d="M173.5 73h10"></path><g class="terminal">
+<path d="M183.5 73h0.0"></path><path d="M288.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="183.5" y="62"></rect><text x="236.0" y="77">expression</text></g><path d="M288.5 73h10"></path><path d="M298.5 73h10"></path><g>
+<path d="M308.5 73h0.0"></path><path d="M670.0 73h0.0"></path><path d="M308.5 73h15"></path><g>
+<path d="M323.5 73h0.0"></path><path d="M655.0 73h0.0"></path><g class="terminal">
+<path d="M323.5 73h0.0"></path><path d="M377.5 73h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="323.5" y="62"></rect><text x="350.5" y="77">Case</text></g><path d="M377.5 73h10"></path><g>
+<path d="M387.5 73h0.0"></path><path d="M540.0 73h0.0"></path><path d="M387.5 73a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path><g class="terminal">
+<path d="M417.5 31h19.25"></path><path d="M490.75 31h19.25"></path><rect height="22" rx="10" ry="10" width="54.0" x="436.75" y="20"></rect><text x="463.75" y="35">Else</text></g><path d="M510.0 31a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><path d="M387.5 73h30"></path><g>
+<path d="M417.5 73h0.0"></path><path d="M510.0 73h0.0"></path><path d="M417.5 73h15"></path><g class="terminal">
+<path d="M432.5 73h0.0"></path><path d="M495.0 73h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="432.5" y="62"></rect><text x="463.75" y="77">value</text></g><path d="M495.0 73h15"></path><path d="M432.5 73a15 15 0 0 0 -15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M432.5 115h17.0"></path><path d="M478.0 115h17.0"></path><rect height="22" rx="10" ry="10" width="28.5" x="449.5" y="104"></rect><text x="463.75" y="119">,</text></g><path d="M495.0 115a15 15 0 0 0 15 -15v-12a15 15 0 0 0 -15 -15"></path></g><path d="M510.0 73h30"></path></g><path d="M540.0 73h10"></path><g class="terminal">
+<path d="M550.0 73h0.0"></path><path d="M655.0 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="550.0" y="62"></rect><text x="602.5" y="77">statements</text></g></g><path d="M655.0 73h15"></path><path d="M323.5 73a15 15 0 0 0 -15 15v43a15 15 0 0 0 15 15"></path><g>
+<path d="M323.5 146h331.5"></path></g><path d="M655.0 146a15 15 0 0 0 15 -15v-43a15 15 0 0 0 -15 -15"></path></g><path d="M670.0 73h10"></path><path d="M680.0 73h10"></path><g class="terminal">
+<path d="M690.0 73h0.0"></path><path d="M795.0 73h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="690.0" y="62"></rect><text x="742.5" y="77">End Select</text></g></g><path d="M795.0 73h10"></path><path d="M 805.0 73 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03090101.xhp b/source/text/sbasic/shared/03090101.xhp
index 71832b815..bd9875630 100644
--- a/source/text/sbasic/shared/03090101.xhp
+++ b/source/text/sbasic/shared/03090101.xhp
@@ -27,48 +27,72 @@
 
 <body>
 
-
 <section id="ifthenelse">
 <bookmark xml-lang="en-US" branch="index" id="bm_id3154422">
   <bookmark_value>If statement</bookmark_value>
+  <bookmark_value>ElseIf; If statement</bookmark_value>
+  <bookmark_value>Else If;If statement</bookmark_value>
+  <bookmark_value>Else;If statement</bookmark_value>
+  <bookmark_value>Else;If statement</bookmark_value>
+  <bookmark_value>End If;If statement</bookmark_value>
+  <bookmark_value>EndIf;If statement</bookmark_value>
 </bookmark>
 
-
-<paragraph id="hd_id3154422" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090101.xhp" name="If...Then...Else Statement">If...Then...Else Statement</link></paragraph>
-<paragraph id="par_id3155555" role="paragraph" xml-lang="en-US">Defines one or more statement blocks that you only want to execute if a given condition is True.</paragraph>
+<h1 id="hd_id81592320644826"><link href="text/sbasic/shared/03090101.xhp" name="If...Then...Else Statement">If...Then...Else Statement</link></h1>
+<paragraph id="par_id3155555" role="paragraph" xml-lang="en-US">Defines one or more statement blocks that you only want to execute if a given condition or expression is <literal>True</literal>.</paragraph>
 </section>
 
-<paragraph id="hd_id3146957" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="image" id="par_id311592320434736"><image src="media/helpimg/sbasic/If_statement.svg" id="img_id601592320434736"><alt id="alt_id551592320434736">If...EndIf statement</alt></image></paragraph>
+<paragraph role="image" id="par_id591592320435808"><image src="media/helpimg/sbasic/ElseIf_fragment.svg" id="img_id691592320435808"><alt id="alt_id341592320435808">ElseIf fragment</alt></image></paragraph>
+<paragraph role="image" id="par_id221592320436632"><image src="media/helpimg/sbasic/Else_fragment.svg" id="img_id81592320436632"><alt id="alt_id391592320436632">Else fragment</alt></image></paragraph>
+
+<bascode>
+  <paragraph id="par_id3153126" role="bascode" localize="false">If condition Then </paragraph>
+  <paragraph role="bascode" id="bas_id801592319803093" localize="false">    statements</paragraph>
+  <paragraph role="bascode" id="bas_id561592319637952" localize="false">[{ElseIf|Else If} expression Then</paragraph>
+  <paragraph role="bascode" id="bas_id31592419640235" localize="false">    statements]</paragraph>
+  <paragraph role="bascode" id="bas_id561692319637952" localize="false">[Else </paragraph>
+  <paragraph role="bascode" id="bas_id31592319640235" localize="false">    statements]</paragraph>
+  <paragraph role="bascode" id="bas_id861592319641899" localize="false">{EndIf|End If}</paragraph>
+</bascode>
+  <paragraph id="par_id3123476" role="paragraph" xml-lang="en-US">Instead of <emph>Else If</emph> you can write <emph>ElseIf</emph>, instead of <emph>End If</emph> you can write <emph>EndIf</emph>.</paragraph>
+  <tip id="par_id631592322239043"><emph>If</emph> statements can be shortened to one line when using single statement blocks.</tip>
 <bascode>
-<paragraph id="par_id3153126" role="bascode" xml-lang="en-US">If condition=true Then Statement block [ElseIf condition=true Then] Statement block [Else] Statement block EndIf</paragraph>
+  <paragraph role="bascode" id="bas_id771592321093694" localize="false">If condition Then statement [Else statement]</paragraph>
 </bascode>
-<paragraph id="par_id3123476" role="paragraph" xml-lang="en-US">Instead of Else If you can write ElseIf, instead of End If you can write EndIf.</paragraph>
 
-<paragraph id="hd_id3155419" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph>
-<paragraph id="par_id3153062" role="paragraph" xml-lang="en-US">The <emph>If...Then</emph> statement executes program blocks depending on given conditions. When $[officename] Basic encounters an <emph>If</emph> statement, the condition is tested. If the condition is True, all subsequent statements up to the next <emph>Else</emph> or <emph>ElseIf</emph> statement are executed. If the condition is False, and an <emph>ElseIf</emph> statement follows, $[officename] Basic tests the next condition and executes the following statements if the condition is True. If False, the program continues either with the next <emph>ElseIf</emph> or <emph>Else</emph> statement. Statements following <emph>Else</emph> are executed only if none of the previously tested conditions were True. After all conditions are evaluated, and the corresponding statements executed, the program continues with the statement following <emph>EndIf</emph>.</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+  <paragraph id="par_id3153062" role="paragraph" xml-lang="en-US">The <emph>If...Then</emph> statement executes program blocks depending on given conditions. When %PRODUCTNAME Basic encounters an <emph>If</emph> statement, the condition is tested. If the condition is <literal>True</literal>, all subsequent statements up to the next <emph>Else</emph> or <emph>ElseIf</emph> statement are executed. If the condition is <literal>False</literal>, and an <emph>ElseIf</emph> statement follows, %PRODUCTNAME Basic tests the next expression and executes the following statements if the condition is <literal>True</literal>. If <literal>False</literal>, the program continues either with the next <emph>ElseIf</emph> or <emph>Else</emph> statement. Statements following <emph>Else</emph> are executed only if none of the previously tested conditions were <literal>True</literal>. After all conditions are evaluated, and the corresponding statements executed, the program continues with the statement fol
 lowing <emph>EndIf</emph>.</paragraph>
 <paragraph id="par_id3153192" role="paragraph" xml-lang="en-US">You can nest multiple <emph>If...Then</emph> statements.</paragraph>
 <paragraph id="par_id3154684" role="paragraph" xml-lang="en-US"> <emph>Else</emph> and <emph>ElseIf</emph> statements are optional.</paragraph>
 <paragraph id="par_id3152939" role="warning" xml-lang="en-US">You can use <emph>GoTo</emph> and <emph>GoSub</emph> to jump out of an <emph>If...Then</emph> block, but not to jump into an <emph>If...Then</emph> structure.</paragraph>
-<paragraph id="par_id3153951" role="paragraph" xml-lang="en-US">The following example enables you to enter the expiration date of a product, and determines if the expiration date has passed.</paragraph>
 
-<paragraph id="hd_id3152576" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
+<paragraph id="par_id3153951" role="paragraph" xml-lang="en-US">The following example enables you to enter the expiration date of a product, and determines if the expiration date has passed.</paragraph>
 <bascode>
-<paragraph id="par_idm1341422592" role="bascode" localize="false" xml-lang="en-US">Sub ExampleIfThenDate</paragraph>
-<paragraph id="par_idm1341421360" role="bascode" localize="false" xml-lang="en-US">Dim sDate As String</paragraph>
-<paragraph id="par_idm1341420128" role="bascode" localize="false" xml-lang="en-US">Dim sToday As String</paragraph>
+<paragraph id="par_idm1341422592" role="bascode" localize="false">Sub ExampleIfThenDate</paragraph>
+<paragraph id="par_idm1341421360" role="bascode" localize="false">    Dim sDate As String</paragraph>
+<paragraph id="par_idm1341420128" role="bascode" localize="false">    Dim sToday As String</paragraph>
 <paragraph id="par_id3154490" role="bascode" xml-lang="en-US">    sDate = InputBox("Enter the expiration date (MM.DD.YYYY)")</paragraph>
-<paragraph id="par_idm1341417136" role="bascode" localize="false" xml-lang="en-US">    sDate = Right$(sDate, 4) + Mid$(sDate, 4, 2) + Left$(sDate, 2)</paragraph>
-<paragraph id="par_idm1341415856" role="bascode" localize="false" xml-lang="en-US">    sToday = Date$</paragraph>
-<paragraph id="par_idm1341414624" role="bascode" localize="false" xml-lang="en-US">    sToday = Right$(sToday, 4)+ Mid$(sToday, 4, 2) + Left$(sToday, 2)</paragraph>
-<paragraph id="par_idm1341413344" role="bascode" localize="false" xml-lang="en-US">    If sDate < sToday Then</paragraph>
+<paragraph id="par_idm1341417136" role="bascode" localize="false">    sDate = Right$(sDate, 4) + Mid$(sDate, 4, 2) + Left$(sDate, 2)</paragraph>
+<paragraph id="par_idm1341415856" role="bascode" localize="false">    sToday = Date$</paragraph>
+<paragraph id="par_idm1341414624" role="bascode" localize="false">    sToday = Right$(sToday, 4)+ Mid$(sToday, 4, 2) + Left$(sToday, 2)</paragraph>
+<paragraph id="par_idm1341413344" role="bascode" localize="false">    If sDate < sToday Then</paragraph>
 <paragraph id="par_id3155601" role="bascode" xml-lang="en-US">        MsgBox "The expiration date has passed"</paragraph>
-<paragraph id="par_idm1341410352" role="bascode" localize="false" xml-lang="en-US">    ElseIf sDate > sToday Then</paragraph>
+<paragraph id="par_idm1341410352" role="bascode" localize="false">    ElseIf sDate > sToday Then</paragraph>
 <paragraph id="par_id3146912" role="bascode" xml-lang="en-US">        MsgBox "The expiration date has not yet passed"</paragraph>
-<paragraph id="par_idm1341407312" role="bascode" localize="false" xml-lang="en-US">    Else</paragraph>
+<paragraph id="par_idm1341407312" role="bascode" localize="false">    Else</paragraph>
 <paragraph id="par_id3154754" role="bascode" xml-lang="en-US">        MsgBox "The expiration date is today"</paragraph>
-<paragraph id="par_idm1341404336" role="bascode" localize="false" xml-lang="en-US">    End If</paragraph>
-<paragraph id="par_idm1341403104" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1341404336" role="bascode" localize="false">    End If</paragraph>
+<paragraph id="par_idm1341403104" role="bascode" localize="false">End Sub</paragraph>
 </bascode>
+
+<section id="relatedtopics">
+  <paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03090102.xhp" name="Select Case statement">Select Case</link> statement</paragraph>
+  <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03090103.xhp" name="Iif function">Iif</link> or <link href="text/sbasic/shared/03090410.xhp" name="Switch function">Switch</link> functions</paragraph>
+</section>
+
 </body>
 
 </helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03090102.xhp b/source/text/sbasic/shared/03090102.xhp
index 7d9eb53cc..55791f203 100644
--- a/source/text/sbasic/shared/03090102.xhp
+++ b/source/text/sbasic/shared/03090102.xhp
@@ -42,12 +42,19 @@
 <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
 <paragraph role="image" id="par_id841588605629842"><image src="media/helpimg/sbasic/Select-Case_statement.svg" id="img_id931588605629842"><alt id="alt_id931588605629842">Select Case syntax</alt></image></paragraph>
 <bascode>
-<paragraph id="par_id3150400" role="bascode" xml-lang="en-US">Select Case condition Case expression Statement Block [Case expression2 Statement Block][Case Else] Statement Block End Select</paragraph>
+  <paragraph role="bascode" id="bas_id251592381900645">Select Case expression</paragraph>
+  <paragraph role="bascode" id="bas_id321592381903509">   Case values</paragraph>
+  <paragraph role="bascode" id="bas_id231592381903973">     Statement Block</paragraph>
+  <paragraph role="bascode" id="bas_id361592381904372">[  Case values2</paragraph>
+  <paragraph role="bascode" id="bas_id421592382002520">     Statement Block]</paragraph>
+  <paragraph role="bascode" id="bas_id161592382004496">[  Case Else</paragraph>
+  <paragraph role="bascode" id="bas_id681592382005351">     Statement Block]</paragraph>
+  <paragraph role="bascode" id="bas_id831592381905293">End Select</paragraph>
 </bascode>
 
 <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-<paragraph id="par_id3156281" role="paragraph" xml-lang="en-US"> <emph>condition:</emph> Any expression that controls if the statement block that follows the respective Case clause is executed.</paragraph>
-  <paragraph id="par_id3150448" role="paragraph" xml-lang="en-US"> <emph>expression:</emph> Any expression that is compatible with the condition type expression. The statement block that follows the <literal>Case</literal> clause is executed if <emph>condition</emph> matches <emph>expression</emph>.</paragraph>
+  <paragraph id="par_id3156281" role="paragraph" xml-lang="en-US"> <emph>expression:</emph> Any expression that controls if the statement block that follows the respective <literal>Case</literal> clause is executed.</paragraph>
+  <paragraph id="par_id3150448" role="paragraph" xml-lang="en-US"> <emph>values:</emph> Any value list that is compatible with the expression. The statement block that follows the <literal>Case</literal> clause is executed if <emph>expression</emph> matches <emph>values</emph>.</paragraph>
 
 <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
 <bascode>
@@ -66,6 +73,11 @@
 <paragraph id="par_idm1340792224" role="bascode" localize="false" xml-lang="en-US">    End Select</paragraph>
 <paragraph id="par_idm1340790992" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
 </bascode>
-</body>
 
+<section id="relatedtopics">
+  <paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03090101.xhp" name="If...Then...Else statement">If</link> statement</paragraph>
+  <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03090103.xhp" name="Iif function">Iif</link> or <link href="text/sbasic/shared/03090410.xhp" name="Switch function">Switch</link> functions</paragraph>
+</section>
+
+</body>
 </helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03090103.xhp b/source/text/sbasic/shared/03090103.xhp
index 8b53d87dd..7b288f74e 100644
--- a/source/text/sbasic/shared/03090103.xhp
+++ b/source/text/sbasic/shared/03090103.xhp
@@ -21,7 +21,7 @@
 <helpdocument version="1.0">
 <meta>
 <topic id="textsbasicshared03090103xml" indexer="include" status="PUBLISH">
-<title id="tit" xml-lang="en-US">IIf Statement</title>
+<title id="tit" xml-lang="en-US">IIf Function</title>
 <filename>/text/sbasic/shared/03090103.xhp</filename>
 </topic>
 <history>
@@ -30,9 +30,9 @@
 </meta>
 <body>
 <section id="iif">
-<bookmark xml-lang="en-US" branch="index" id="bm_id3155420"><bookmark_value>IIf statement</bookmark_value>
+<bookmark xml-lang="en-US" branch="index" id="bm_id3155420"><bookmark_value>IIf function</bookmark_value>
 </bookmark>
-<paragraph role="heading" id="hd_id3155420" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03090103.xhp" name="IIf Statement">IIf Statement</link></paragraph>
+<paragraph role="heading" id="hd_id3155420" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03090103.xhp" name="IIf Function">IIf Function</link></paragraph>
 <paragraph role="paragraph" id="par_id3145610" xml-lang="en-US">Returns one of two possible function results, depending on the logical value of the evaluated expression.</paragraph>
 </section>
 <paragraph role="heading" id="hd_id3159413" xml-lang="en-US" level="2">Syntax:</paragraph>
@@ -46,6 +46,11 @@
 <emph>ExpressionTrue, ExpressionFalse:</emph> Any expression, one of which will be returned as the function result, depending on the logical evaluation.</paragraph>
 <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
 <embed href="text/sbasic/shared/00000003.xhp#err5"/>
-</body>
-</helpdocument>
 
+<section id="relatedtopics">
+  <paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03090101.xhp" name="If...Then...Else statement">If</link> or <link href="text/sbasic/shared/03090102.xhp" name="Select Case statement">Select Case</link> statements</paragraph>
+  <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03090410.xhp" name="Switch function">Switch</link> function</paragraph>
+</section>
+
+</body>
+</helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03090201.xhp b/source/text/sbasic/shared/03090201.xhp
index 9606ac66b..696ffeecd 100644
--- a/source/text/sbasic/shared/03090201.xhp
+++ b/source/text/sbasic/shared/03090201.xhp
@@ -27,7 +27,6 @@
 
 <body>
 
-
 <section id="doloop">
 <bookmark xml-lang="en-US" branch="index" id="bm_id3156116">
   <bookmark_value>Do...Loop statement</bookmark_value>
@@ -38,66 +37,66 @@
 
 
 <paragraph id="hd_id3156116" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090201.xhp" name="Do...Loop Statement">Do...Loop Statement</link></paragraph>
-<paragraph id="par_id3109850" role="paragraph" xml-lang="en-US">Repeats the statements between the Do and the Loop statement while the condition is True or until the condition becomes True.</paragraph>
+  <paragraph id="par_id3109850" role="paragraph" xml-lang="en-US">Repeats the statements between the <emph>Do</emph> and the <emph>Loop</emph> statement while the condition is <literal>True</literal> or until the condition becomes <literal>True</literal>.</paragraph>
 </section>
 
-<paragraph id="hd_id3149119" role="heading" level="2" xml-lang="en-US">Syntax</paragraph>
-<paragraph id="par_id3155150" role="bascode" xml-lang="en-US">Do [{While | Until} condition = True]</paragraph>
-<paragraph id="par_id3154422" role="paragraph" xml-lang="en-US">statement block</paragraph>
-<paragraph id="par_id3150789" role="bascode" xml-lang="en-US">[Exit Do]</paragraph>
-<paragraph id="par_id3155805" role="paragraph" xml-lang="en-US">statement block</paragraph>
-<paragraph id="par_id3145090" role="bascode" xml-lang="en-US">Loop</paragraph>
-<paragraph id="par_id3154749" role="paragraph" xml-lang="en-US">or</paragraph>
-<paragraph id="par_id3150503" role="bascode" xml-lang="en-US">Do</paragraph>
-<paragraph id="par_id3149762" role="paragraph" xml-lang="en-US">statement block</paragraph>
-<paragraph id="par_id3150984" role="bascode" xml-lang="en-US">[Exit Do]</paragraph>
-<paragraph id="par_id3143228" role="paragraph" xml-lang="en-US">statement block</paragraph>
-<paragraph id="par_id3149235" role="bascode" xml-lang="en-US">Loop [{While | Until} condition = True]</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="image" id="par_id311592320434736"><image src="media/helpimg/sbasic/Do_statement.svg" id="img_id601592320434736"><alt id="alt_id551592320434736">Do statement</alt></image></paragraph>
+<bascode>
+  <paragraph role="bascode" id="bas_id431592385468901" localize="false">Do {While | Until} condition = True</paragraph>
+  <paragraph role="bascode" id="bas_id171592386317704" xml-lang="en-US">' Do While: The statement block is repeated as long as the condition is true</paragraph>
+  <paragraph role="bascode" id="bas_id11592386319239"  xml-lang="en-US">' Do Until: The statement block is repeated as long as the condition is false</paragraph>
+  <paragraph role="bascode" id="bas_id131592385470352" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id581592385470803" localize="false">   [Exit Do]</paragraph>
+  <paragraph role="bascode" id="bas_id461592385471261" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id831592385471675" localize="false">Loop</paragraph>
+</bascode>
+
+<paragraph role="image" id="par_id591592320435808"><image src="media/helpimg/sbasic/Do-Loop_statement.svg" id="img_id691592320435808"><alt id="alt_id341592320435808">Do...Loop statement</alt></image></paragraph>
+<bascode>
+  <paragraph role="bascode" id="bas_id441592385468901" localize="false">Do</paragraph>
+  <paragraph role="bascode" id="bas_id141592385470352" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id541592385470803" localize="false">   [Exit Do]</paragraph>
+  <paragraph role="bascode" id="bas_id441592385471261" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id911592386676044" xml-lang="en-US">' Loop While: The statement block repeats as long as the condition is true</paragraph>
+  <paragraph role="bascode" id="bas_id971592386677004" xml-lang="en-US">' Loop Until: The statement block repeats until the condition is true</paragraph>
+  <paragraph role="bascode" id="bas_id841592385471675" localize="false">Loop {While | Until} condition = True</paragraph>
+</bascode>
 
-<paragraph id="hd_id3156024" role="heading" level="2" xml-lang="en-US">Parameters/Elements</paragraph>
-<paragraph id="par_id3156344" role="paragraph" xml-lang="en-US"> <emph>Condition:</emph> A comparison, numeric or string expression, that evaluates either True or False.</paragraph>
-<paragraph id="par_id3149669" role="paragraph" xml-lang="en-US"> <emph>Statement block:</emph> Statements that you want to repeat while or until the condition is True.</paragraph>
-<paragraph id="par_id3150791" role="paragraph" xml-lang="en-US">The <emph>Do...Loop</emph> 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 <emph>Do</emph> or the <emph>Loop</emph> statement. The following examples are valid combinations:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id3150791" role="paragraph" xml-lang="en-US">The <emph>Do...Loop</emph> statement executes a loop as long as, or until, a certain condition is <literal>True</literal>. The condition for exiting the loop must be entered following either the <emph>Do</emph> or the <emph>Loop</emph> statement. The above examples are valid combinations.</paragraph>
+<paragraph id="par_id3156344" role="paragraph" xml-lang="en-US"> <emph>condition:</emph> A comparison, numeric or Basic expression, that evaluates to either <literal>True</literal> or <literal>False</literal>.</paragraph>
+<paragraph id="par_id3149669" role="paragraph" xml-lang="en-US"> <emph>statements:</emph> Statements that you want to repeat while or until a condition is <literal>True</literal>.</paragraph>
 
-<paragraph id="hd_id3154366" role="heading" level="2" xml-lang="en-US">Syntax</paragraph>
-<paragraph id="par_id3145171" role="bascode" xml-lang="en-US">Do While condition = True</paragraph>
-<paragraph id="par_id3149203" role="paragraph" xml-lang="en-US">...statement block</paragraph>
-<paragraph id="par_id3125864" role="bascode" xml-lang="en-US">Loop</paragraph>
-<paragraph id="par_id3154124" role="paragraph" xml-lang="en-US">The statement block between the Do While and the Loop statements is repeated so long as the condition is true.</paragraph>
-<paragraph id="par_id3153968" role="bascode" xml-lang="en-US">Do Until condition = True</paragraph>
-<paragraph id="par_id3154909" role="paragraph" xml-lang="en-US">...statement block</paragraph>
-<paragraph id="par_id3159151" role="bascode" xml-lang="en-US">Loop</paragraph>
-<paragraph id="par_id3150440" role="paragraph" xml-lang="en-US">The statement block between the Do Until and the Loop statements is repeated if the condition so long as the condition is false.</paragraph>
-<paragraph id="par_id3153952" role="bascode" xml-lang="en-US">Do</paragraph>
-<paragraph id="par_id3147349" role="paragraph" xml-lang="en-US">...statement block</paragraph>
-<paragraph id="par_id3159153" role="bascode" xml-lang="en-US">Loop While condition = True</paragraph>
-<paragraph id="par_id3146985" role="paragraph" xml-lang="en-US">The statement block between the Do and the Loop statements repeats so long as the condition is true.</paragraph>
-<paragraph id="par_id3150488" role="bascode" xml-lang="en-US">Do</paragraph>
-<paragraph id="par_id3153189" role="paragraph" xml-lang="en-US">...statement block</paragraph>
-<paragraph id="par_id3155411" role="bascode" xml-lang="en-US">Loop Until condition = True</paragraph>
-<paragraph id="par_id3151117" role="paragraph" xml-lang="en-US">The statement block between the Do and the Loop statements repeats until the condition is true.</paragraph>
 <paragraph id="par_id3149484" role="paragraph" xml-lang="en-US">Use the <emph>Exit Do</emph> statement to unconditionally end the loop. You can add this statement anywhere in a <emph>Do</emph>...<emph>Loop</emph> statement. You can also define an exit condition using the <emph>If...Then</emph> structure as follows:</paragraph>
-<paragraph id="par_id3149262" role="bascode" xml-lang="en-US">Do...</paragraph>
-<paragraph id="par_id3149298" role="paragraph" xml-lang="en-US">statements</paragraph>
-<paragraph id="par_id3145646" role="bascode" xml-lang="en-US">If condition = True Then Exit Do</paragraph>
-<paragraph id="par_id3154490" role="paragraph" xml-lang="en-US">statements</paragraph>
-<paragraph id="par_id3153159" role="bascode" xml-lang="en-US">Loop...</paragraph>
+<bascode>
+  <paragraph role="bascode" id="bas_id831592387131224" localize="false">Do...</paragraph>
+  <paragraph role="bascode" id="bas_id621592387131776" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id721592387132161" localize="false">   If condition = True Then Exit Do</paragraph>
+  <paragraph role="bascode" id="bas_id141592387132344" localize="false">   statements</paragraph>
+  <paragraph role="bascode" id="bas_id91592387132592" localize="false">Loop...</paragraph>
+</bascode>
 
-<paragraph id="hd_id3147396" role="heading" level="2" xml-lang="en-US">Example</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
 <bascode>
-<paragraph id="par_idm1341080208" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDoLoop</paragraph>
-<paragraph id="par_idm1341078976" role="bascode" localize="false" xml-lang="en-US">Dim sFile As String</paragraph>
-<paragraph id="par_idm1341077744" role="bascode" localize="false" xml-lang="en-US">Dim sPath As String</paragraph>
-<paragraph id="par_idm1341076512" role="bascode" localize="false" xml-lang="en-US">    sPath = "c:\"</paragraph>
-<paragraph id="par_idm1341075280" role="bascode" localize="false" xml-lang="en-US">    sFile = Dir$( sPath ,22)</paragraph>
-<paragraph id="par_idm1341074032" role="bascode" localize="false" xml-lang="en-US">    If sFile <> "" Then</paragraph>
-<paragraph id="par_idm1341072656" role="bascode" localize="false" xml-lang="en-US">        Do</paragraph>
-<paragraph id="par_idm1341071456" role="bascode" localize="false" xml-lang="en-US">            MsgBox sFile</paragraph>
-<paragraph id="par_idm1341070208" role="bascode" localize="false" xml-lang="en-US">            sFile = Dir$</paragraph>
-<paragraph id="par_idm1341068960" role="bascode" localize="false" xml-lang="en-US">        Loop Until sFile = ""</paragraph>
-<paragraph id="par_idm1341067712" role="bascode" localize="false" xml-lang="en-US">    End If</paragraph>
-<paragraph id="par_idm1341066480" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1341080208" role="bascode" localize="false">Sub ExampleDoLoop</paragraph>
+<paragraph id="par_idm1341078976" role="bascode" localize="false">    Dim sFile As String</paragraph>
+<paragraph id="par_idm1341077744" role="bascode" localize="false">    Dim sPath As String</paragraph>
+<paragraph id="par_idm1341076512" role="bascode" localize="false">    sPath = "c:\"</paragraph>
+<paragraph id="par_idm1341075280" role="bascode" localize="false">    sFile = Dir$( sPath ,22)</paragraph>
+<paragraph id="par_idm1341074032" role="bascode" localize="false">    If sFile <> "" Then</paragraph>
+<paragraph id="par_idm1341072656" role="bascode" localize="false">        Do</paragraph>
+<paragraph id="par_idm1341071456" role="bascode" localize="false">            MsgBox sFile</paragraph>
+<paragraph id="par_idm1341070208" role="bascode" localize="false">            sFile = Dir$</paragraph>
+<paragraph id="par_idm1341068960" role="bascode" localize="false">        Loop Until sFile = ""</paragraph>
+<paragraph id="par_idm1341067712" role="bascode" localize="false">    End If</paragraph>
+<paragraph id="par_idm1341066480" role="bascode" localize="false">End Sub</paragraph>
 </bascode>
-</body>
 
+<section id="relatedtopics">
+  <paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03090202.xhp" name="For statement">For</link>, <link href="text/sbasic/shared/03090102.xhp" name="Select Case statement">Select Case</link> or <link href="text/sbasic/shared/03090203.xhp" name="While statement">While</link> statements</paragraph>
+  <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03090103.xhp" name="Iif function">Iif</link> or <link href="text/sbasic/shared/03090410.xhp" name="Switch function">Switch</link> functions</paragraph>
+</section>
+
+</body>
 </helpdocument>
diff --git a/source/text/sbasic/shared/03090203.xhp b/source/text/sbasic/shared/03090203.xhp
index c29905c08..a73675344 100644
--- a/source/text/sbasic/shared/03090203.xhp
+++ b/source/text/sbasic/shared/03090203.xhp
@@ -31,28 +31,42 @@
 <body>
 
   <section id="whilewend">
-  <bookmark xml-lang="en-US" branch="index" id="bm_id3150400"><bookmark_value>While;While...Wend loop</bookmark_value></bookmark><paragraph id="hd_id3150400" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090203.xhp" name="While...Wend Statement">While...Wend Statement</link></paragraph>
-  <paragraph xml-lang="en-US" role="paragraph" id="par_id3151211">When a program encounters a While statement, it tests the condition. If the condition is False, the program continues directly following the Wend statement. If the condition is True, the loop is executed until the program finds Wend and then jumps back to the<emph> While </emph>statement. If the condition is still True, the loop is executed again.</paragraph>
+  <bookmark xml-lang="en-US" branch="index" id="bm_id3150400">
+    <bookmark_value>While;While...Wend loop</bookmark_value>
+    <bookmark_value>While;While Wend loop</bookmark_value>
+  </bookmark>
+  <paragraph id="hd_id3150400" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090203.xhp" name="While...Wend Statement">While...Wend Statement</link></paragraph>
+    <paragraph xml-lang="en-US" role="paragraph" id="par_id3151211">When a program encounters a <literal>While</literal> statement, it tests the condition. If the condition is <literal>False</literal>, the program continues directly following the <literal>Wend</literal> statement. If the condition is <literal>True</literal>, the loop is executed until the program finds <literal>Wend</literal> and then jumps back to the <emph>While</emph> statement. If the condition is still <literal>True</literal>, the loop is executed again.</paragraph>
   </section>
-  <paragraph xml-lang="en-US" id="par_id3151041" role="paragraph">Unlike the <link href="text/sbasic/shared/03090201.xhp" name="Do...Loop">Do...Loop</link> statement, you cannot cancel a <emph>While...Wend</emph> loop with <link href="text/sbasic/shared/03090412.xhp" name="Exit">Exit</link>. Never exit a While...Wend loop with <link href="text/sbasic/shared/03090302.xhp" name="GoTo">GoTo</link>, since this can cause a run-time error.</paragraph>
-  <paragraph role="paragraph" id="par_id3145172" xml-lang="en-US">A Do...Loop is more flexible than a While...Wend.</paragraph>
-  <paragraph role="heading" level="2" id="hd_id3155133" xml-lang="en-US">Syntax:</paragraph>
-  <bascode>
-<paragraph role="bascode" id="par_id3147288" xml-lang="en-US">While Condition [Statement] Wend</paragraph>
+  <paragraph xml-lang="en-US" id="par_id3151041" role="paragraph">Unlike the <link href="text/sbasic/shared/03090201.xhp" name="Do...Loop">Do...Loop</link> statement, you cannot cancel a <emph>While...Wend</emph> loop with <link href="text/sbasic/shared/03090412.xhp" name="Exit">Exit</link>. Never exit a <literal>While...Wend</literal> loop with <link href="text/sbasic/shared/03090302.xhp" name="GoTo">GoTo</link>, since this can cause a run-time error.</paragraph>
+  <paragraph role="paragraph" id="par_id3145172" xml-lang="en-US">A <literal>Do...Loop</literal> is more flexible than a <literal>While...Wend.</literal></paragraph>
+
+  <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+  <paragraph role="image" id="par_id831588865616326">
+    <image src="media/helpimg/sbasic/While_statement.svg" id="img_id651588865616326"><alt id="alt_id281588865616326">While syntax</alt></image>
+  </paragraph>
+<bascode>
+    <paragraph role="bascode" id="par_id3147288" localize="false">While Condition [statements] Wend</paragraph>
 </bascode>
-  <paragraph role="heading" level="2" id="hd_id3153139" xml-lang="en-US">Example:</paragraph>
+  <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
 <bascode>
-  <paragraph role="bascode" id="par_id3159153" xml-lang="en-US">Sub ExampleWhileWend</paragraph>
-  <paragraph role="bascode" id="par_id3151114" xml-lang="en-US">Dim stext As String</paragraph>
-  <paragraph role="bascode" id="par_id3153143" xml-lang="en-US">Dim iRun As Integer</paragraph>
-  <paragraph role="bascode" id="par_id3155306" xml-lang="en-US">    sText ="This Is a short text"</paragraph>
-  <paragraph role="bascode" id="par_id3154011" xml-lang="en-US">    iRun = 1</paragraph>
-  <paragraph role="bascode" id="par_id3147215" xml-lang="en-US">    While iRun < Len(sText)</paragraph>
-  <paragraph role="bascode" id="par_id3147427" xml-lang="en-US">        If Mid(sText,iRun,1 )<> " " Then Mid( sText ,iRun, 1, Chr( 1 + Asc( Mid(sText,iRun,1 )) )</paragraph>
-  <paragraph role="bascode" id="par_id3149665" xml-lang="en-US">        iRun = iRun + 1</paragraph>
-  <paragraph role="bascode" id="par_id3152939" xml-lang="en-US">    Wend</paragraph>
+  <paragraph role="bascode" id="par_id3159153" localize="false">Sub ExampleWhileWend</paragraph>
+  <paragraph role="bascode" id="par_id3151114" localize="false">    Dim stext As String</paragraph>
+  <paragraph role="bascode" id="par_id3153143" localize="false">    Dim iRun As Integer</paragraph>
+  <paragraph role="bascode" id="par_id3155306" xml-lang="en-US">    sText ="This is a short text"</paragraph>
+  <paragraph role="bascode" id="par_id3154011" localize="false">    iRun = 1</paragraph>
+  <paragraph role="bascode" id="par_id3147215" localize="false">    While iRun < Len(sText)</paragraph>
+  <paragraph role="bascode" id="par_id3147427" localize="false">        If Mid(sText,iRun,1 )<> " " Then Mid( sText ,iRun, 1, Chr( 1 + Asc( Mid(sText,iRun,1 )) )</paragraph>
+  <paragraph role="bascode" id="par_id3149665" localize="false">        iRun = iRun + 1</paragraph>
+  <paragraph role="bascode" id="par_id3152939" localize="false">    Wend</paragraph>
   <paragraph role="bascode" id="par_id3153189" xml-lang="en-US">    MsgBox sText,0,"Text encoded"</paragraph>
-  <paragraph role="bascode" localize="false" id="par_id3145251" xml-lang="en-US">End Sub</paragraph>
+  <paragraph role="bascode" localize="false" id="par_id3145251">End Sub</paragraph>
 </bascode>
+
+  <section id="relatedtopics">
+    <paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03090201.xhp" name="Do...Loop statement">Do...Until</link> or <link href="text/sbasic/shared/03090201.xhp" name="Do...While statement">Do...While</link> statement</paragraph>
+    <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03090412.xhp" name="Exit statement">Exit</link> statement</paragraph>
+  </section>
+
  </body>
 </helpdocument>


More information about the Libreoffice-commits mailing list