| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files/LibreOffice/help/en-US/text/sbasic/shared/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Loops</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="loops"></a>
<h1 id="hd_id3153990" dir="auto">Loops</h1>
<p id="par_id3147226" class="paragraph" dir="auto">The following statements execute loops.</p>
<div class="embedded">
<a name="doloop"></a>
<h2 id="hd_id3156116" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03090201.html">Do...Loop Statement</a></h2>
<p id="par_id3109850" class="paragraph" dir="auto">Repeats the statements between the <span class="emph">Do</span> and the <span class="emph">Loop</span> statement while the condition is <span class="literal">True</span> or until the condition becomes <span class="literal">True</span>.</p>
</div>
<div class="embedded">
<a name="fornext"></a>
<h2 id="hd_id3149205" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03090202.html">For...Next Statement</a></h2>
<p id="par_id3143267" class="paragraph" dir="auto">Repeats the statements between the <span class="literal">For...Next</span> block a specified number of times.</p>
</div>
<div class="embedded">
<a name="whilewend"></a>
<h2 id="hd_id3150400" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03090203.html">While...Wend Statement</a></h2>
<p id="par_id3151211" class="paragraph" dir="auto">When a program encounters a <span class="literal">While</span> statement, it tests the condition. If the condition is <span class="literal">False</span>, the program continues directly following the <span class="literal">Wend</span> statement. If the condition is <span class="literal">True</span>, the loop is executed until the program finds <span class="literal">Wend</span> and then jumps back to the <span class="emph">While</span> statement. If the condition is still <span class="literal">True</span>, the loop is executed again.</p>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sbasic/shared/03090200.xhp" target="_blank">/text/sbasic/shared/03090200.xhp</a></p>
<p dir="auto">Title is: Loops</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>