Report Generator
  Go to Component
    Search    Help Desk 
For Loop

Component

For Loop

Category

Logical and Flow

Description

The For Loop component iteratively executes its subcomponents and must have at least one subcomponent to execute properly. This component functions like the for loop in MATLAB, except that instead of executing a statement, it executes its subcomponents while the following loop is active.

where varname must be a string that is valid as a variable name. x, y, z can be scalar numbers or workspace expressions that are evaluated in the workspace as scalar numbers. If any one of these is a string that cannot be evaluated as a scalar number, then the For Loop will not execute.

For example, if red is a workspace variable, the following is a valid for statement:

length(red) is 3, which is a scalar number.

Attributes

This is the For Loop attribute page.

Note:
To view a component attribute page in the Setup File Editor, select the component in the setup file outline on the left and click on the Options tab. If the component is not in the setup file outline, you must add it to the outline first. See Chapter 4 for a discussion on how to add a component to the outline.

for
Enter varname (as explained above) in the first field, and x:y:z (see above) in the next three fields.
Make value of FOR loop visible in workspace
Use this option to place the loop index (the value of the FOR loop variable) in the workspace while other components are executing.
Remove variable from workspace when done
Use this option to remove the loop index from the workspace. This option is only available if you selected the Make value of FOR loop visible in workspace option.

Insert anything into report?

No.

Filename

clofor



[ Previous | Help Desk | Next ]