This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorial:loopstatement [2019/01/07 15:11] admin |
tutorial:loopstatement [2019/01/30 09:10] (current) admin |
||
---|---|---|---|
Line 4: | Line 4: | ||
|For..Do|<sxh delphi;> | |For..Do|<sxh delphi;> | ||
For i:={Start} to {End} do | For i:={Start} to {End} do | ||
+ | {Statement}; | ||
+ | </sxh> <sxh delphi;> | ||
+ | For i:={Start} downto {End} do | ||
{Statement}; | {Statement}; | ||
</sxh> |<sxh delphi;> | </sxh> |<sxh delphi;> | ||
For i:=1 to 10 do | For i:=1 to 10 do | ||
writeln('i = ',i); | writeln('i = ',i); | ||
- | </sxh> | | + | </sxh><sxh delphi;> |
+ | For i:=10 downto 1 do | ||
+ | writeln('i = ',i); | ||
+ | </sxh>| | ||
|While..Do|<sxh delphi;> | |While..Do|<sxh delphi;> | ||
While {Condition} do | While {Condition} do |