identloop <ident> {,<ident> ... } {
command_block>
}
Execute a set of commands on selected identifiers.
<ident>
Existing identifier(s).
This can be a wild character expression. If omitted, all local identifiers
are processed. Function and procedure identifiers are ignored.
-ty=<type>
Only process the identifier(s) if they are of the indicated identifier type.
The command block will be executed on each identifier satisfying the identifier list. During each block execution the generic identifier ident may be used to refer to the relevant identifier. The system string identifier ident_name contains the original identifier name of ident, including atable prefix.
If no identifier table is specified in an identifier name, the current default scope atable is searched for the identifier.
A jump to the end of the loop may be made with the continue command.
A break out of the loop may be made with a break command.
Print the names and types of all local numeric strings. Note: The idir command would achieve the same result.
identloop -ty=string { tell ident_name }
Get the accumulative total of all numerics with positive values in an atable test.
numeric total = 0
identloop ~test.*,-ty=numeric {
if (ident > 0) total += ident
}
|
Commands: |
|
|
Identifiers: |
ident (generic), ident_name (string) |