Difference between revisions of "Then"

From Free Pascal wiki
Jump to navigationJump to search
m (Spelling fix)
Line 1: Line 1:
 
{{then}}
 
{{then}}
[[Keyword]] preceded by [[If|if]] and followed by [[Else|else]]
+
'''then''' is a  [[Keyword]] preceded by [[If|if]] and optionally followed by [[Else|else]]
 
<syntaxhighlight>
 
<syntaxhighlight>
  if (condition)
+
if (condition) then
   then (action)
+
   (action)
   else (action)
+
else
 +
   (action);
 
</syntaxhighlight>
 
</syntaxhighlight>
 
{{Keywords}}
 
{{Keywords}}
 
[[category:Pascal]]
 
[[category:Pascal]]
 
[[Category:Control Structures]]
 
[[Category:Control Structures]]

Revision as of 20:55, 23 July 2016

Deutsch (de) English (en) français (fr) русский (ru)
then is a Keyword preceded by if and optionally followed by else

if (condition) then 
  (action)
else 
  (action);


Keywords: begindoelseendforifrepeatthenuntilwhile