Difference between revisions of "Until"

From Free Pascal wiki
Jump to navigationJump to search
m
(remove duplicate content and redirect to Repeat)
Tag: New redirect
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This [[Keyword|keyword]]  is used in a control construct that is similar to a [[While|while]] or [[Do|do]] loop.
+
#REDIRECT [[Repeat]]
 
 
Syntax:
 
 
 
  '''repeat'''
 
  '''  <statement block>'''
 
  '''until <condition>;'''
 
 
 
<statement block>: A single pascal statement or a begin-end statement block.
 
 
 
<condition>: Expression that eveluates to a boolean value.
 
 
 
Example:
 
 
 
  '''x := 1;'''
 
  '''repeat'''
 
  '''begin'''
 
  '''  DoSomethingHere(x);'''
 
  '''  x := x + 1;'''
 
  '''end;'''
 
  '''until x = 10;'''
 
 
 
 
 
{{Keywords}}
 
[[category:Pascal]]
 

Latest revision as of 23:36, 20 November 2020

Redirect to: