Browse Prior Art Database

Structured Programming LET Group

IP.com Disclosure Number: IPCOM000082864D
Original Publication Date: 1975-Feb-01
Included in the Prior Art Database: 2005-Feb-28
Document File: 3 page(s) / 54K

Publishing Venue

IBM

Related People

Bandel, RD: AUTHOR [+2]

Abstract

The Structured Programming LET group control structure allows one of three mutually exclusive subgroups of executable statements to be executed. The group of statements executed is determined by the condition of the target variable of as assignment statement, after execution of the assignment statement.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 54% of the total text.

Page 1 of 3

Structured Programming LET Group

The Structured Programming LET group control structure allows one of three mutually exclusive subgroups of executable statements to be executed. The group of statements executed is determined by the condition of the target variable of as assignment statement, after execution of the assignment statement.

Control will be passed to one subgroup of statements if the target variable is positive, a second subgroup if negative, and a third subgroup if zero. Control from each subgroup will go to the statement following the LET group. If there is no subgroup of statements for a specific condition, control will transfer to the statement following the LET group.

One of the conditions not-positive, not-negative, not-zero, positive, negative or zero may be used to provide one-way logic control.

The LET group is begun by a LET statement and terminated by an ENDLET statement. The subgroups are identified by a POSITIVE, NEGATIVE, ZERO, NOTPOSITIVE, NOTNEGATIVE, or NOTZERO subgroup statement.

Fig. 1 shows a LET group control structure for positive, negative and zero conditions. The flow of program control is as follows. LET identifies the beginning of the control structure. The LET assignment statement is executed. The condition of the result is used to determine which subgroup of statements to execute. A positive result causes control to be transferred to the statements identified by the POSITIVE subgroup statement. A negative result gives control to the statements described by the NEGATIVE subgroup statement. A zero result passes control to the statements described by the ZERO subgroup statement. The chosen statements are executed and control passes to the statement following the ENDLET statement.

A two-way control...