|
STRING ENDS WITHName:
where <iflag> is a parameter containing a 1 if <s1> ends with <s2> and 0 otherwise; <s1> is the name of a pre-existing string; and <s2> is the name of a pre-existing string.
you need to do
LET STRING SMATCH = nist.gov LET SOUT = STRING ENDS WITH SORG SMATCH The name on the left hand side of the equal sign should either be a previously existing parameter or not previously defined. If it is a previously existing string, variable, or matrix name, an error will be reported and the requested parameter will not be created.
LET STRING S1 = alan.heckert@gmail.com LET STRING S2 = gmail.com LET IFLAG = STRING ENDS WITH S1 S2 PRINT IFLAGThe following output is returned PARAMETERS AND CONSTANTS-- IFLAG -- 0.1000000E+01
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 10/10/2018 |