Contents | Index | < Browse | Browse >
ABBREV(<longstring>,<shortstring>,[<length>])
      returns boolean value

Returns 1 if <shortstring> is equal to the leading characters of
<longstring>. If <length> is specified, then <shortstring> must also be at
least that long. The comparison is case-sensitive. If <length> is not
specified, an empty string will always match <longstring>.

      Returns 0 if either condition is not met.

   Examples:
         say abbrev('Waldorf','Waldo');              >>> 1
         say abbrev('Waldorf','WALDO');              >>> 0
         say abbrev( upper('Waldorf') , 'WALDO');    >>> 1

   Also see 
            

Next: COMPARE() | Prev: Comparison func. | Contents: Comparison func.