Contents | Index | < Browse | Browse >
usage: VERIFY(string,list[,'Match'])
VERIFY(string,list[,'m'])
VERIFY(string,list[,'Match'][,start])

Note: third usage example above is not documented in the 1991 and 1995 editions of the ARexx manuals. Thanks to Stefan A. Haubenthal for pointing this one out.

-if Match keyword omitted: returns position of the first character in string NOT contained in list, or 0 if all characters contained in list.

-if Match keyword supplied: returns position of the first character in string which IS in the list, or 0 if none are present.

Examples:
SAY VERIFY('123456','0123456789') --> 0
SAY VERIFY('123a56','0123456789') --> 4
SAY VERIFY('123a56','0123456789') --> 4
say VERIFY('123756','123456') --> 4
SAY VERIFY('123a45','abcdefghij','m') --> 4
say verify('123756','123456','m') --> 1
say VERIFY('123756','123456','m',4) --> 5