summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/sbasic/shared/03090000.xhp
blob: d632a2a8ee737af045b9ae47e863aff23e8d0141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>


<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->

<helpdocument version="1.0">
<meta>
<topic id="textsbasicshared03090000xml" indexer="include" status="PUBLISH">
<title xml-lang="en-US" id="tit">Controlling Program Execution</title>
<filename>/text/sbasic/shared/03090000.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
  
  
  <section id="prog_execution">
  <paragraph id="hd_id3145136" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090000.xhp" name="Controlling Program Execution">Controlling Program Execution</link></paragraph>
  <paragraph role="paragraph" id="par_id3143268" xml-lang="en-US">The following statements control the execution of a program.</paragraph>
  </section>
  <paragraph role="paragraph" id="par_id3156152" xml-lang="en-US">A program generally executes from the first line of code to the last line of code. You can also execute certain procedures within the program according to specific conditions, or repeat a section of the program within a sub-procedure or function. You can use loops to repeat parts of a program as many times as necessary, or until a certain condition is met. These type of control statements are classified as Condition, Loop, or Jump statements.</paragraph>
  <embed href="text/sbasic/shared/03090100.xhp#conditions"/>
  <embed href="text/sbasic/shared/03090200.xhp#loops"/>
  <embed href="text/sbasic/shared/03090300.xhp#jumps"/>
  <embed href="text/sbasic/shared/03090400.xhp#further_statements"/>
 </body>
</helpdocument>