A for-loop statement is a programming loop statement that performs predefined tasks while or until a predetermined condition is met.

For a general example of an if-else statement, not specific to any particular programming language, see "What is for?".

history | excerpt history