Announcements
No record found.
for
for i := 1 to 10 do begin // Code to execute end;
While Loop: Use the while loop when you want to execute a block of code as long as a condition is true. This loop might not execute at all if the condition is false initially.
while
while i <= 10 do begin // Code to execute i := i + 1; end;
Repeat-Until Loop: Use the repeat-until loop when you want to execute a block of code at least once and then repeat as long as a condition is true.
repeat-until
repeat // Code to execute i := i + 1; until i > 10;
If-Then-Else: Use the if-then-else statement to execute code based on a condition. You can include an else block to handle the case when the condition is false.
if-then-else
else
if x = y then // Code to execute if the condition is true else // Code to execute if the condition is false
case x of 1: // Code for case 1 2: // Code for case 2 else // Code for all other cases end;
regards
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,926 Super User 2026 Season 1
YUN ZHU 1,158 Super User 2026 Season 1
Khushbu Rajvi. 533 Super User 2026 Season 1