1 if
info is equal to the leading characters
of the receiving string and the length of
info is not less than
length. Returns
0 if either of these conditions is not met.
Say "Print"~abbrev("Pri") --> 1
Say "PRINT"~abbrev("Pri") --> 0
Say "PRINT"~abbrev("PRI",4) --> 0
Say "PRINT"~abbrev("PRY") --> 0
Say "PRINT"~abbrev("") --> 1
Say "PRINT"~abbrev("",1) --> 0
0, or the
default, is used. This allows a default keyword to be selected automatically
if desired.say "Enter option:"; pull option .
select /* keyword1 is to be the default */
when "keyword1"~abbrev(option) then ...
when "keyword2"~abbrev(option) then ...
/* ... */
otherwise nop;
end;