List of Statements | Story Problem Index |
Anglish Features | Examples of Tables |
Wherever Restriced Plurals | Anglish Sentence Syntax |
The plural statements command the computer to perform the operation for ALL rows. The some rows may be a problem in that it is not initialized correctly. If the computer is commanded to perform calculations anyway, unpredictable results may occur.
The solution is a "conditional execution" statement which restricts the plural computation to only specified rows. The format of the statement is :
For a, b, ... and c: statement1; statement2; : statementn. This statement tells the computer to execute the following statements only for the named rows. For example: For Sam and Mary: rate$ = effort$ / time$. combined rate = sam's rate + mary's rate; combined time = combined effort / combined rate;The for statement is very intutive, however, it is also very restrictive. It can only be used on row labels of labeled tables. A more general method for restricting plurals - wherever - is needed. The for and wherever statements use Anglish sentence syntax.