Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,143
Jainam M. Kothari 1,694 Super User 2025 Season 2
YUN ZHU 1,067 Super User 2025 Season 2