SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

STRING COMPARE

Name:
    STRING COMPARE
Type:
    Let Subcommand
Purpose:
    Compare two strings and return a 1 if they are identical and return a 0 if they are not.
Syntax:
    LET <ival> = STRING COMPARE <s1> <s2>
    where <ival> is a parameter containing a 1 if the strings are identical and 0 if they are not;
                <s1> is the name of the first string;
    and     <s2> is the name of the second string.
Examples:
    LET IVAL = STRING COMPARE S1 S2
Default:
    None
Synonyms:
    None
Related Commands: Applications:
    Data Management
Implementation Date:
    1/2011
Program:
     
    LET STRING S1 = file23.dat
    LET STRING S2 = file13.dat
    LET STRING S3 = file23.dat
    LET IVAL1 = STRING COMPARE S1 S2
    LET IVAL2 = STRING COMPARE S1 S3
        
    The resulting values of IVAL1 and IVAL2 are 0 and 1, respectively.

Date created: 01/06/2011
Last updated: 01/06/2011
Please email comments on this WWW page to alan.heckert@nist.gov.