CHECK EQUAL LENGTH
Given a list of names, check to see if each name is a currently
defined variable and that all of the variables have the same
number of elements.
Sometimes when writing general purpose macros it may be useful
to know if certain names have been defined as variables, and if so,
do the variables have the same number of elements.
LET <iflag> = CHECK EQUAL LENGTH
<name1> <name2> ... <namek>
where <name1> <name2> ... <namek> is a list of
1 to k names;
and <iflag> is a parameter where the status
If all names are already defined as variables with the same number
of elements, <iflag> will be set to 1. Otherwise <iflag>
will be set to 0.
LET IFLAG = CHECK EQUAL LENGTH Y X
The CALL EXIT and CALL
EXIT ALL commands were added to allow you to exit a macro. The
status flag from the CHECK EQUAL LENGTH command can be used to
determine whether you want to exit from a macro or continue.
= Check the types for a list of names.
= Check whether a list of names have been previously defined.
read berger1.dat y x bat
let iflag = check equal length y x bat
The following output is generated
THE STATUS FLAG FOR CHECK EQUAL LENGTH = 1
NIST is an agency of the U.S.
Date created: 06/30/2015
Last updated: 06/30/2015
Please email comments on this WWW page to