<?xml version="1.0" encoding="UTF-8"?>

<!--***********************************************************
 *
 * 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
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 ***********************************************************-->

<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>
</meta>
<body>
<section id="programmablauf">
<paragraph id="hd_id3145136" role="heading" level="1" l10n="U" 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" l10n="U" xml-lang="en-US">The following statements control the execution of a program.</paragraph>
</section>
<paragraph role="paragraph" id="par_id3156152" l10n="U" 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#entscheidung"/>
<embed href="text/sbasic/shared/03090200.xhp#schleifen"/>
<embed href="text/sbasic/shared/03090300.xhp#sprung"/>
<embed href="text/sbasic/shared/03090400.xhp#weitere"/>
</body>
</helpdocument>