While...End While

Kalipso - Form - Actions - Actions Description - Group Code - While...End While

A while loop is a control flow statement that allows code to be executed repeatedly based on a given condition.

Action available for the following operating systems:

Parameters

  • Condition <unquoted string> - This parameter is the condition that is verified in iteration of while loop. This condition may be a complex expression with AND and OR operators like in the common programming languages.

Usage

Consider the following database table "Products":

Code

Name

Stock

001

Coca Cola

100

002

Pepsi Cola

200

003

Pork Chops

300

Example 1

Result:

Code

Name

Stock

003

Pork Chops

300

Example 2

Result:

Code

Name

Stock

001

Coca Cola

100

002

Pepsi Cola

200

003

Pork Chops

300

004

Product 1

100

005

Product 2

100

006

Product 3

100

Last updated